/* Executive Elegant UI - Refined & Sophisticated */

:root {
    /* Elegant Color Palette */
    --primary-color: #0F172A;
    /* Midnight Slate */
    --primary-light: #334155;
    --accent-color: #3B82F6;
    /* Royal Blue */
    --accent-soft: #DBEAFE;
    --gold-accent: #D4AF37;
    /* Subtle Gold for premium feel */

    --bg-color: #F8FAFC;
    --card-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(255, 255, 255, 0.8);

    --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 50px -12px rgba(0, 0, 0, 0.12);

    --radius-card: 20px;
    --radius-btn: 12px;
}

body {
    background-color: var(--bg-color);
    background-image:
        radial-gradient(at 0% 0%, hsla(210, 100%, 96%, 1) 0, transparent 55%),
        radial-gradient(at 100% 100%, hsla(220, 100%, 97%, 1) 0, transparent 55%);
    background-attachment: fixed;
    color: #334155;
    line-height: 1.6;
}

/* Sophisticated Glass Cards */
.filter-card,
.card-modern {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid #fff;
    box-shadow: var(--shadow-soft);
    border-radius: var(--radius-card);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.filter-card:hover,
.card-modern:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    background: rgba(255, 255, 255, 0.98);
}

/* Elegant Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--primary-color);
    letter-spacing: -0.025em;
}

.hero-title {
    color: #fff;
    /* Keep white for dark heroes */
    font-weight: 800;
    letter-spacing: -0.04em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    background: none;
    -webkit-text-fill-color: initial;
}

/* Refined Buttons */
.btn-primary {
    background-color: var(--primary-color) !important;
    color: #fff;
    border: none !important;
    padding: 12px 28px;
    border-radius: var(--radius-btn);
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
    transition: all 0.3s ease;
    background-image: none !important;
}

.btn-primary:hover {
    background-color: #1e293b !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.25);
}

.btn-outline-primary {
    color: var(--primary-color);
    border: 1px solid rgba(15, 23, 42, 0.2) !important;
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color) !important;
}

/* Minimalist Icon Box */
.icon-box {
    width: 64px;
    height: 64px;
    background: #fff;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    color: var(--primary-color);
    transition: all 0.3s ease;
    font-size: 1.5rem;
}

.filter-card:hover .icon-box {
    transform: scale(1.05);
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2);
}

/* Clean List Items */
.list-group-item {
    background: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    padding: 16px 0;
    transition: padding-left 0.2s ease;
}

.list-group-item:hover {
    background: transparent;
    padding-left: 10px;
}

.list-group-item:last-child {
    border-bottom: none;
}

/* Elegant Badges */
.badge {
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.badge-light {
    background: var(--accent-soft);
    color: var(--accent-color);
}

/* Avatar Refinement */
.avatar-placeholder {
    background: #fff;
    color: var(--primary-color);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.btn-round {
    background: #fff;
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: none;
}

.btn-round:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Form Controls */
.form-control,
.form-control-modern {
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    padding: 10px 16px;
    height: auto !important;
    min-height: 48px;
    line-height: 1.5;
    border-radius: var(--radius-btn);
    color: var(--primary-color);
}

.form-control:focus {
    background: #fff;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

select.form-control,
select.form-control-modern {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

/* Alerts */
.alert {
    border: none;
    background: #fff;
    border-left: 4px solid;
    box-shadow: var(--shadow-soft);
}

.alert-warning {
    border-color: var(--gold-accent);
}

.progress {
    background: #e2e8f0;
    height: 8px;
    border-radius: 100px;
}


/* ----------------------------------------------------------------
   ENTRANCE & MOTION EFFECTS
---------------------------------------------------------------- */

/* Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes glowPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

/* Animation Classes */
.animate-fade-up {
    animation: fadeInUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    opacity: 0;
    /* Ensures it's hidden before animation starts */
}

.animate-scale-in {
    animation: fadeInScale 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards !important;
    opacity: 0;
}

/* Delays */
.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}

/* Scroll Animation Initial State */
.reveal-on-scroll {
    opacity: 1;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Specifics */
.hero-content h1 {
    animation: fadeInUp 1s ease-out forwards;
}

.hero-content p {
    animation: fadeInUp 1s ease-out 0.2s forwards;
    opacity: 0;
}

.search-box-modern {
    animation: fadeInScale 1s ease-out 0.4s forwards;
    opacity: 0;
}

/* Continuous Motion */
.floating-element {
    animation: float 6s ease-in-out infinite;
}

.pulse-btn {
    animation: glowPulse 2s infinite;
}