/* ----------------------------------------------------
   HOUSE OF BREWS - PREMIUM EDITORIAL LANDING PAGE CSS
   ---------------------------------------------------- */

/* Reset & Variables */
:root {
    --color-blush-pink: #E3C6C1;
    --color-mustard-yellow: #DCA257;
    --color-muted-navy: #1E2D42;
    --color-btn-navy: #111C2B;
    
    --text-charcoal: #1A1A1A;
    --text-cream: #F5F2EB;
    --text-muted: #5C5852;
    
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Inter', sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-premium: 0 30px 60px rgba(0, 0, 0, 0.4), 0 15px 25px rgba(0, 0, 0, 0.2);
    --shadow-button: 0 4px 15px rgba(17, 28, 43, 0.25);
    --shadow-button-hover: 0 8px 25px rgba(17, 28, 43, 0.4);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #0B0B0C;
    font-family: var(--font-sans);
    color: var(--text-cream);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

/* Presentation Wrapper (Sleek Portfolio Presentation) */
.presentation-wrapper {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    z-index: 1;
}

/* Ambient Radial Glow */
.ambient-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1400px;
    height: 1400px;
    background: radial-gradient(circle, rgba(220, 162, 87, 0.08) 0%, rgba(30, 45, 66, 0.05) 50%, rgba(11, 11, 12, 0) 70%);
    pointer-events: none;
    z-index: -1;
    animation: pulseGlow 12s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    0% { opacity: 0.7; transform: translate(-50%, -50%) scale(0.9); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

/* Main 3:4 Editorial Card */
.editorial-card {
    position: relative;
    width: 100%;
    max-width: 580px; /* Standard premium layout size */
    aspect-ratio: 3 / 4;
    background: #111;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    z-index: 10;
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

/* Fullscreen Mode Class (Toggled via JS) */
.editorial-card.fullscreen {
    max-width: none;
    width: 100vw;
    height: 100vh;
    aspect-ratio: auto;
    border-radius: 0;
    border: none;
}

/* Background Panels Layout */
.background-panels {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-blush-pink) 0%, var(--color-mustard-yellow) 45%, var(--color-muted-navy) 90%);
    z-index: 1;
    transition: var(--transition-smooth);
}

.panel {
    display: none;
}

/* Decorative Floating Assets */
.decorative-assets {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.asset-wrapper {
    position: absolute;
    will-change: transform;
    transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.asset {
    width: 100%;
    height: auto;
    display: block;
}

/* Coffee Leaves and Cherries (Left Column) */
.leaves-cherries-wrapper {
    top: 20%;
    left: -12%;
    width: 48%;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.15));
}

.leaves-cherries {
    mix-blend-mode: multiply; /* Blends white bg onto blush pink */
    filter: contrast(1.08) brightness(1.08);
    transform: rotate(-10deg);
    animation: gentleFloatLeft 8s ease-in-out infinite alternate;
}

/* Scattered Beans (Right / Navy Column) */
.scattered-beans-wrapper {
    top: 10%;
    right: 4%;
    width: 28%;
}

.scattered-beans {
    mix-blend-mode: screen; /* Blends black bg onto navy */
    transform: rotate(15deg);
    animation: gentleFloatRight 10s ease-in-out infinite alternate;
    opacity: 0.9;
}

/* Artisan Latte Cup (Bottom Right) */
.latte-wrapper {
    bottom: -6%;
    right: -6%;
    width: 44%;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.45));
}

.artisan-latte {
    mix-blend-mode: screen; /* Blends black bg onto navy */
    animation: gentleFloatLatte 7s ease-in-out infinite alternate;
}

/* Steam Animation */
.steam-container {
    position: absolute;
    top: 10%;
    left: 45%;
    transform: translateX(-50%);
    width: 60px;
    height: 80px;
    z-index: 5;
    pointer-events: none;
    display: flex;
    justify-content: space-around;
}

.steam-line {
    width: 3px;
    height: 100%;
    background: linear-gradient(to top, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.05) 70%, transparent 100%);
    border-radius: 50%;
    filter: blur(3px);
    animation: riseSteam 4s ease-in-out infinite;
    animation-delay: calc(var(--i) * -1.2s);
}

@keyframes riseSteam {
    0% {
        transform: translateY(40px) scaleX(1) skewX(0deg);
        opacity: 0;
    }
    15% {
        opacity: 0.6;
    }
    50% {
        transform: translateY(0px) scaleX(2) skewX(10deg);
        opacity: 0.4;
    }
    95% {
        opacity: 0;
    }
    100% {
        transform: translateY(-40px) scaleX(3) skewX(-15deg);
        opacity: 0;
    }
}

/* Asset Float Keyframes */
@keyframes gentleFloatLeft {
    0% { transform: rotate(-10deg) translateY(0px); }
    100% { transform: rotate(-7deg) translateY(-8px); }
}

@keyframes gentleFloatRight {
    0% { transform: rotate(15deg) translateY(0px); }
    100% { transform: rotate(18deg) translateY(-10px); }
}

@keyframes gentleFloatLatte {
    0% { transform: translateY(0px) scale(1); }
    100% { transform: translateY(-5px) scale(1.02); }
}

/* Foreground Content Layer */
.card-content {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 5;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 6% 7% 5% 7%;
}

/* Editorial Header (Logo & Tagline) */
.editorial-header {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-bottom: 1px solid rgba(26, 26, 26, 0.08);
    padding-bottom: 18px;
    margin-bottom: auto;
}

.logo-area {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-icon {
    color: var(--text-charcoal);
    margin-bottom: 6px;
    display: flex;
    justify-content: center;
    opacity: 0.9;
}

.logo-title {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-charcoal);
    line-height: 1.2;
}

.logo-tagline {
    font-family: var(--font-sans);
    font-size: 0.55rem;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Hero Section */
.hero-section {
    margin-top: auto;
    margin-bottom: auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
    animation: fadeInText 1s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

@keyframes fadeInText {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-text-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: 2.1rem;
    font-weight: 300;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--text-charcoal);
    text-transform: uppercase;
}

.hero-subtext {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(26, 26, 26, 0.75);
    letter-spacing: 0.01em;
}

/* Call To Action Container */
.cta-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.cta-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 14px 24px;
    border-radius: 40px;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-decoration: none;
    text-transform: uppercase;
    transition: var(--transition-smooth);
    cursor: pointer;
}

/* Primary Dark Navy CTA Button */
.primary-cta {
    background-color: var(--color-btn-navy);
    color: var(--text-cream);
    box-shadow: var(--shadow-button);
    border: 1px solid var(--color-btn-navy);
    gap: 10px;
}

.primary-cta:hover {
    background-color: #17263d;
    box-shadow: var(--shadow-button-hover);
    transform: translateY(-2px);
}

.primary-cta:active {
    transform: translateY(0);
}

.btn-arrow {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.primary-cta:hover .btn-arrow {
    transform: translateX(4px);
}

/* Secondary CTA Button */
.secondary-cta {
    background-color: transparent;
    color: var(--text-charcoal);
    border: 1.5px solid rgba(26, 26, 26, 0.15);
    gap: 8px;
}

.secondary-cta:hover {
    background-color: rgba(26, 26, 26, 0.05);
    border-color: rgba(26, 26, 26, 0.4);
}

/* Bottom Editorial Section */
.editorial-footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-top: 1px solid rgba(26, 26, 26, 0.08);
    padding-top: 18px;
    margin-top: auto;
}

.footer-quote {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-style: italic;
    font-weight: 400;
    color: var(--text-charcoal);
    margin-bottom: 10px;
    letter-spacing: 0.02em;
}

.footer-engagement {
    font-family: var(--font-sans);
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-engagement i {
    font-size: 0.7rem;
    margin-right: 3px;
}

.engagement-item {
    transition: color 0.3s ease;
    cursor: pointer;
}

.engagement-item:hover {
    color: var(--text-charcoal);
}

.bullet-divider {
    color: rgba(26, 26, 26, 0.2);
}

/* Controls for Presentation Screen */
.presentation-controls {
    display: flex;
    gap: 12px;
    margin-top: 25px;
    z-index: 15;
}

.control-btn {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 16px;
    border-radius: 30px;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 6px;
}

.control-btn:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.control-btn.active {
    background-color: var(--text-cream);
    color: #0b0b0c;
    border-color: var(--text-cream);
}

/* Responsiveness adjustments */
@media (max-width: 600px) {
    .presentation-wrapper {
        padding: 0;
    }
    
    .editorial-card {
        border-radius: 0;
        max-width: none;
        width: 100vw;
        height: 100vh;
        aspect-ratio: auto;
        border: none;
    }
    
    .card-content {
        padding: 8% 6%;
    }
    
    .hero-section {
        padding-right: 0; /* Fall back on small devices to let text flow if columns squish */
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 20px;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        margin: auto 0;
    }

    /* On mobile, mix blend mode white/black elements might need backdrop adjustments */
    .leaves-cherries-wrapper {
        width: 38%;
        top: 15%;
        left: -5%;
    }
    
    .latte-wrapper {
        width: 38%;
        bottom: -2%;
        right: -2%;
    }
    
    .presentation-controls {
        display: none; /* Hide presenter controls on actual mobile devices */
    }
}

/* ----------------------------------------------------
   CTA PAGE STYLING (CREAM MINIMALIST STYLE)
   ---------------------------------------------------- */

.simple-theme .cream-panel {
    background-color: #FAF8F5; /* Warm luxury cream/linen background */
    width: 100%;
    height: 100%;
}

.background-panels.simple-theme {
    background: #FAF8F5;
}

/* CTA assets custom layout (blending multiply on light cream background) */
.cta-assets .cta-leaves-wrapper {
    top: 50%;
    left: -12%;
    width: 45%;
    transform: rotate(25deg);
    opacity: 0.15; /* Subtly integrated in background */
}

.cta-assets .cta-leaves {
    mix-blend-mode: multiply;
}

.cta-assets .cta-latte-wrapper {
    top: -8%;
    right: -10%;
    width: 38%;
    opacity: 0.25; /* Subtle coffee accent in the background */
    transform: rotate(-15deg);
}

.cta-assets .cta-latte {
    mix-blend-mode: multiply; /* Blends white-background latte cup */
}

/* Form Styles */
.cta-form-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
    margin-top: auto;
    margin-bottom: auto;
    width: 100%;
    animation: fadeInText 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.form-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--text-charcoal);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.form-subtitle {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 10px;
    padding: 0 5%;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.input-label {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--text-charcoal);
    text-transform: uppercase;
}

/* Pill selector styled radio buttons */
.pill-selector {
    display: flex;
    gap: 8px;
    width: 100%;
}

.pill-item {
    flex: 1;
    cursor: pointer;
}

.pill-item input {
    display: none; /* Hide native radio */
}

.pill-label {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 5px;
    border-radius: 20px;
    background-color: rgba(26, 26, 26, 0.04);
    border: 1px solid rgba(26, 26, 26, 0.08);
    font-family: var(--font-sans);
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition-smooth);
    text-align: center;
}

.pill-item input:checked + .pill-label {
    background-color: var(--color-btn-navy);
    color: var(--text-cream);
    border-color: var(--color-btn-navy);
    box-shadow: 0 4px 10px rgba(17, 28, 43, 0.15);
}

.pill-item:hover .pill-label {
    border-color: rgba(26, 26, 26, 0.25);
}

/* Luxury line-drawing fields */
.input-fields-group {
    display: flex;
    gap: 15px;
    margin-bottom: 22px;
}

.form-field {
    position: relative;
    flex: 1;
    border-bottom: 1.5px solid rgba(26, 26, 26, 0.15);
    padding-top: 15px;
    transition: var(--transition-smooth);
}

.form-field input {
    width: 100%;
    padding: 6px 0;
    background: transparent;
    border: none;
    outline: none;
    font-family: var(--font-sans);
    font-size: 0.82rem;
    color: var(--text-charcoal);
}

.form-field .floating-label {
    position: absolute;
    left: 0;
    top: 20px;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Float label animation on input focus or valid value */
.form-field input:focus ~ .floating-label,
.form-field input:not(:placeholder-shown) ~ .floating-label {
    top: 0;
    font-size: 0.58rem;
    font-weight: 600;
    color: var(--text-charcoal);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.form-field:focus-within {
    border-bottom-color: var(--color-btn-navy);
}

.form-submit-btn {
    width: 100%;
    border: none;
    margin-top: 5px;
}

/* CTA Footer Back Link */
.cta-footer {
    border-top: 1px solid rgba(26, 26, 26, 0.08);
}

.back-link {
    font-family: var(--font-sans);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.back-link:hover {
    color: var(--text-charcoal);
    transform: translateX(-2px);
}

.back-link-logo {
    text-decoration: none;
}

/* Success Overlay */
.success-message {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #FAF8F5;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    padding: 10%;
}

.success-message.visible {
    opacity: 1;
    pointer-events: all;
}

.success-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    transform: translateY(20px);
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.success-message.visible .success-content {
    transform: translateY(0);
}

.success-icon {
    font-size: 2.8rem;
    color: #3b7a57;
    margin-bottom: 5px;
}

.success-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--text-charcoal);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.success-text {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.return-btn {
    text-decoration: none;
    margin-top: 10px;
}

@media (max-width: 600px) {
    .cta-card {
        background-color: #FAF8F5;
    }
    
    .cta-assets .cta-leaves-wrapper {
        opacity: 0.08;
    }
    
    .cta-assets .cta-latte-wrapper {
        opacity: 0.12;
    }
    
    .input-fields-group {
        flex-direction: column;
        gap: 10px;
    }
}

/* ----------------------------------------------------
   BACKEND/ADMIN LEADS DASHBOARD STYLING
   ---------------------------------------------------- */

.admin-page {
    background: #F4F2FF;
    color: #1E293B;
    display: block;
    align-items: initial;
    justify-content: initial;
}

.admin-page button,
.admin-page input,
.admin-page select {
    font-family: var(--font-sans);
}

.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100vw;
    background: linear-gradient(135deg, #F8F7FF 0%, #F2F7FB 48%, #F8F5EA 100%);
    color: #1E293B;
    font-family: var(--font-sans);
    overflow-x: hidden;
}

/* Left Sidebar UI */
.db-sidebar {
    width: 280px;
    background-color: #FFFFFF;
    border-right: 1px solid #E2E8F0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 35px 20px;
    flex-shrink: 0;
}

.sidebar-top {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #0F172A;
    text-decoration: none;
}

.logo-text {
    font-family: var(--font-sans);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    color: #0F172A;
}

.sidebar-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-group-title {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #94A3B8;
    text-transform: uppercase;
    padding-left: 10px;
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 7px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #64748B;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.sidebar-menu-link i {
    font-size: 1rem;
    width: 20px;
}

.sidebar-menu-link:hover {
    background-color: #F8FAFC;
    color: #334155;
}

/* Reference UI Active Blue Sidebar Badge */
.sidebar-menu-link.active {
    background-color: #1877F2; /* Dribbble blue */
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.15);
}

.sidebar-profile-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background-color: #F8FAFC;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
}

.profile-card-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #E2E8F0;
}

.profile-details {
    display: flex;
    flex-direction: column;
}

.profile-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #1E293B;
}

.profile-role {
    font-size: 0.65rem;
    color: #94A3B8;
}

.profile-settings-btn {
    background: none;
    border: none;
    color: #94A3B8;
    cursor: pointer;
    transition: color 0.2s ease;
}

.profile-settings-btn:hover {
    color: #475569;
}

/* Main Workspace UI */
.db-main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 32px;
    gap: 20px;
    overflow-y: auto;
    max-height: 100vh;
}

/* Top Header */
.db-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 8px;
    padding: 18px 20px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
    backdrop-filter: blur(14px);
}

.header-title-area {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.header-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0F172A;
    letter-spacing: -0.01em;
}

.header-subtitle {
    font-size: 0.78rem;
    color: #64748B;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Header Search */
.header-search {
    position: relative;
    width: 240px;
}

.header-search input {
    width: 100%;
    padding: 8px 12px 8px 36px;
    border-radius: 7px;
    border: 1px solid #E2E8F0;
    background-color: #FFFFFF;
    font-size: 0.82rem;
    color: #334155;
    outline: none;
    transition: var(--transition-smooth);
}

.header-search input:focus {
    border-color: #1877F2;
    box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.15);
}

.header-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94A3B8;
    font-size: 0.85rem;
}

/* Action Icons */
.icon-badge-btn {
    width: 38px;
    height: 38px;
    border-radius: 7px;
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748B;
    position: relative;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.icon-badge-btn:hover {
    background-color: #F8FAFC;
    color: #334155;
}

.red-dot {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 6px;
    height: 6px;
    background-color: #EF4444;
    border-radius: 50%;
}

.lead-pipeline-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    align-items: center;
    gap: 12px;
}

.pipeline-item,
.pipeline-cta {
    min-height: 64px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(226, 232, 240, 0.84);
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.035);
}

.pipeline-item.active {
    border-color: rgba(24, 119, 242, 0.28);
}

.pipeline-count {
    font-size: 1.2rem;
    line-height: 1;
    font-weight: 800;
    color: #0F172A;
}

.pipeline-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748B;
}

.pipeline-cta {
    color: #1877F2;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 700;
    flex-direction: row;
    align-items: center;
    white-space: nowrap;
}

/* Metric highlight cards */
.db-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.metric-card {
    border-radius: 8px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 148px;
    border: 1px solid rgba(255,255,255,0.4);
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    transition: transform 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
}

/* Colors matching the Dribbble Reference UI */
.metric-card.purple-tint {
    background-color: #F3EAFE; /* Lavender-purple tint */
}

.metric-card.blue-tint {
    background-color: #E0F2FE; /* Sky blue tint */
}

.metric-card.pink-tint {
    background-color: #FCE7F3; /* Pink tint */
}

.metric-card.yellow-tint {
    background-color: #FEF3C7; /* Mustard/yellow tint */
}

.metric-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.metric-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 7px;
    background-color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #334155;
    font-size: 1rem;
}

.metric-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.6);
}

.metric-badge.up {
    color: #10B981;
}

.metric-badge.down {
    color: #EF4444;
}

.metric-card-bottom {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.metric-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1E293B;
    line-height: 1.1;
}

.metric-card-title {
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Leads Table UI */
.db-table-card {
    background-color: #FFFFFF;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 4px 25px rgba(0,0,0,0.03);
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.table-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
}

.table-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0F172A;
}

.table-actions-group {
    display: flex;
    gap: 10px;
}

.btn-secondary {
    background-color: #F1F5F9;
    border: 1px solid #E2E8F0;
    color: #475569;
    padding: 8px 14px;
    border-radius: 7px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-secondary:hover {
    background-color: #E2E8F0;
}

.btn-primary {
    background-color: #1877F2;
    border: 1px solid #1877F2;
    color: #FFFFFF;
    padding: 8px 14px;
    border-radius: 7px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-primary:hover {
    background-color: #1162cc;
    border-color: #1162cc;
}

/* Table formatting */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.leads-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.leads-table th {
    background-color: #F8FAFC;
    padding: 12px 24px;
    font-size: 0.65rem;
    font-weight: 700;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: 1px solid #E2E8F0;
    white-space: nowrap;
}

.leads-table th i {
    color: #CBD5E1;
    font-size: 0.6rem;
    margin-left: 4px;
}

.leads-table td {
    padding: 16px 24px;
    font-size: 0.8rem;
    color: #334155;
    border-bottom: 1px solid #F1F5F9;
    vertical-align: middle;
}

.leads-table tbody tr {
    transition: background-color 0.2s ease;
}

.leads-table tbody tr:hover {
    background-color: #F8FAFC;
}

/* Profile details column */
.lead-profile-col {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lead-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #E2F0FE;
    color: #1877F2;
    font-weight: 700;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lead-name-info {
    display: flex;
    flex-direction: column;
}

.lead-fullname {
    font-weight: 600;
    color: #1E293B;
}

.lead-preference {
    font-size: 0.68rem;
    color: #94A3B8;
}

.contact-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-col span {
    color: #334155;
    font-weight: 500;
}

.contact-col small {
    color: #94A3B8;
    font-size: 0.68rem;
}

/* AI Score Progress Bar matching the UI reference */
.ai-score-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 120px;
}

.ai-score-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
    font-weight: 700;
}

.ai-score-label {
    color: #1E293B;
}

.ai-score-recommendation {
    font-size: 0.58rem;
    font-weight: 500;
    color: #1877F2;
}

.ai-score-bar-bg {
    width: 100%;
    height: 6px;
    background-color: #E2E8F0;
    border-radius: 4px;
    overflow: hidden;
}

.ai-score-bar-fill {
    height: 100%;
    background-color: #1877F2;
    border-radius: 4px;
    transition: width 0.8s ease;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-badge.hot {
    background-color: #DCFCE7;
    color: #16A34A;
}

.status-badge.warm {
    background-color: #FEF3C7;
    color: #D97706;
}

.status-badge.cold {
    background-color: #F1F5F9;
    color: #64748B;
}

/* Action buttons in rows */
.table-actions {
    display: flex;
    gap: 8px;
}

.table-action-btn {
    background: none;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94A3B8;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.table-action-btn:hover {
    background-color: #F1F5F9;
    color: #475569;
}

.table-action-btn.delete-btn:hover {
    background-color: #FEE2E2;
    color: #EF4444;
}

.table-action-btn.edit-btn:hover {
    background-color: #EEF2FF;
    color: #4F46E5;
}

.empty-leads-state {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: #94A3B8;
    text-align: center;
}

.empty-leads-state i {
    font-size: 1.6rem;
}

.empty-leads-state strong {
    color: #334155;
    font-size: 0.9rem;
}

.empty-leads-state span {
    font-size: 0.78rem;
}

/* Popup Form Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.visible {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background-color: #FFFFFF;
    border-radius: 8px;
    width: 480px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.visible .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #E2E8F0;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0F172A;
}

.modal-close-btn {
    background: none;
    border: none;
    color: #94A3B8;
    font-size: 1.1rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-close-btn:hover {
    color: #475569;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.modal-form-group label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.modal-form-group input, 
.modal-form-group select {
    padding: 10px 12px;
    border-radius: 7px;
    border: 1px solid #D1D5DB;
    outline: none;
    font-size: 0.85rem;
    transition: border-color 0.2s ease;
}

.modal-form-group input:focus, 
.modal-form-group select:focus {
    border-color: #1877F2;
}

.modal-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 10px;
}

/* Responsiveness for Dashboard */
@media (max-width: 1024px) {
    .db-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .lead-pipeline-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pipeline-cta {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .dashboard-wrapper {
        flex-direction: column;
    }
    
    .db-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #E2E8F0;
        padding: 20px;
    }
    
    .sidebar-top {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    .sidebar-group, .sidebar-profile-card {
        display: none;
    }
    
    .db-main-content {
        padding: 20px;
        max-height: none;
    }
    
    .db-metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .db-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .header-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .header-search {
        flex: 1;
    }

    .lead-pipeline-strip {
        grid-template-columns: 1fr;
    }

    .table-header-bar {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .table-actions-group {
        width: 100%;
        flex-wrap: wrap;
    }

    .modal-content {
        width: calc(100vw - 32px);
        padding: 22px;
    }
}
