/* Upthyme AI-ATS - Modern UI Design System */

/* Import Modern Font Stack */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* Modern Color Palette & Design Tokens */
:root {
    /* Primary Colors - Upthyme Vibrant Blue */
    --primary-color: hsl(214, 100%, 47%);
    --primary-dark: hsl(214, 100%, 42%);
    --primary-darker: hsl(214, 100%, 37%);
    --primary-light: hsl(214, 100%, 55%);
    --primary-lighter: hsl(214, 100%, 65%);
    --primary-50: hsl(214, 100%, 98%);
    --primary-100: hsl(214, 100%, 95%);
    --primary-200: hsl(214, 100%, 90%);
    --primary-300: hsl(214, 100%, 80%);
    --primary-400: hsl(214, 100%, 60%);
    --primary-500: hsl(214, 100%, 47%);
    --primary-600: hsl(214, 100%, 42%);
    --primary-700: hsl(214, 100%, 37%);
    --primary-800: hsl(214, 90%, 32%);
    --primary-900: hsl(214, 85%, 27%);

    /* Secondary Colors - Keeping functional colors */
    --secondary-color: hsl(214, 100%, 47%);
    --secondary-dark: hsl(214, 100%, 42%);
    --secondary-light: hsl(214, 100%, 55%);
    
    /* Semantic Colors */
    --success-color: hsl(142, 76%, 36%);
    --success-dark: hsl(142, 76%, 30%);
    --success-light: hsl(142, 76%, 45%);
    --success-50: hsl(142, 76%, 96%);
    --success-100: hsl(142, 76%, 90%);
    --success-200: hsl(142, 76%, 80%);
    --success-300: hsl(142, 76%, 65%);
    --success-700: hsl(142, 76%, 30%);
    --info-color: hsl(214, 100%, 47%);
    --info-dark: hsl(214, 100%, 42%);
    --info-light: hsl(214, 100%, 55%);
    --warning-color: hsl(38, 92%, 50%);
    --warning-dark: hsl(38, 92%, 45%);
    --warning-light: hsl(38, 92%, 60%);
    --warning-50: hsl(38, 92%, 96%);
    --warning-100: hsl(38, 92%, 90%);
    --warning-200: hsl(38, 92%, 80%);
    --warning-300: hsl(38, 92%, 65%);
    --warning-700: hsl(38, 92%, 45%);
    --danger-color: hsl(0, 84%, 60%);
    --danger-dark: hsl(0, 84%, 50%);
    --danger-light: hsl(0, 84%, 70%);
    --danger-50: hsl(0, 84%, 96%);
    --danger-100: hsl(0, 84%, 90%);
    --danger-200: hsl(0, 84%, 80%);
    --danger-300: hsl(0, 84%, 70%);
    --danger-700: hsl(0, 84%, 50%);
    
    /* Neutral Colors - Clean professional grays */
    --dark-color: hsl(220, 15%, 20%);
    --light-color: hsl(0, 0%, 100%);
    --gray-50: hsl(214, 25%, 97%);
    --gray-100: hsl(214, 20%, 92%);
    --gray-200: hsl(214, 20%, 88%);
    --gray-300: hsl(214, 15%, 75%);
    --gray-400: hsl(220, 10%, 60%);
    --gray-500: hsl(220, 10%, 50%);
    --gray-600: hsl(220, 12%, 40%);
    --gray-700: hsl(220, 15%, 30%);
    --gray-800: hsl(220, 15%, 25%);
    --gray-900: hsl(220, 15%, 20%);
    
    /* Modern Shadows - Design System Aligned */
    --shadow-xs: 0px 1px 3px 0px hsl(214 20% 20% / 0.10);
    --shadow-sm: 0px 2px 4px -1px hsl(214 20% 20% / 0.06), 0px 1px 2px -1px hsl(214 20% 20% / 0.10);
    --shadow: 0px 4px 6px -1px hsl(214 20% 20% / 0.10), 0px 2px 4px -1px hsl(214 20% 20% / 0.06);
    --shadow-md: 0px 6px 12px -2px hsl(214 20% 20% / 0.12), 0px 3px 7px -3px hsl(214 20% 20% / 0.10);
    --shadow-lg: 0px 10px 20px -5px hsl(214 20% 20% / 0.15), 0px 5px 10px -3px hsl(214 20% 20% / 0.08);
    --shadow-xl: 0px 20px 30px -8px hsl(214 20% 20% / 0.18), 0px 8px 15px -5px hsl(214 20% 20% / 0.10);
    --shadow-2xl: 0px 25px 50px -12px hsl(214 20% 20% / 0.25);
    --shadow-inner: inset 0 2px 4px 0 hsl(214 20% 20% / 0.06);
    
    /* Glassmorphism Effects */
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: hsl(214, 20%, 92%);
    --glass-shadow: 0 8px 32px 0 rgba(0, 119, 240, 0.08);
    --glass-blur: 12px;
    
    /* Animations - Minimal, purposeful */
    --transition-base: all 0.2s ease-out;
    --transition-fast: all 0.15s ease-out;
    --transition-slow: all 0.3s ease-out;
    
    /* Z-index Scale */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --primary-color: hsl(214, 100%, 55%);
    --primary-dark: hsl(214, 100%, 60%);
    --primary-darker: hsl(214, 100%, 65%);
    --primary-light: hsl(214, 100%, 65%);
    --primary-lighter: hsl(214, 100%, 75%);
    
    --dark-color: hsl(214, 15%, 92%);
    --light-color: hsl(220, 18%, 12%);
    --gray-50: hsl(220, 18%, 12%);
    --gray-100: hsl(220, 15%, 16%);
    --gray-200: hsl(220, 12%, 24%);
    --gray-300: hsl(220, 12%, 35%);
    --gray-400: hsl(220, 10%, 50%);
    --gray-500: hsl(220, 10%, 60%);
    --gray-600: hsl(214, 10%, 65%);
    --gray-700: hsl(214, 10%, 75%);
    --gray-800: hsl(214, 15%, 85%);
    --gray-900: hsl(214, 15%, 92%);
    
    --glass-bg: rgba(31, 41, 55, 0.8);
    --glass-border: hsl(220, 12%, 20%);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 400;
    color: var(--gray-900);
    background: var(--light-color);
    min-height: 100vh;
    position: relative;
    transition: background 0.2s ease;
}

[data-theme="dark"] body {
    background: var(--light-color);
    color: var(--gray-200);
}

/* Modern Typography - Design System Aligned */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
    color: var(--gray-100);
}

h1 { 
    font-size: 32px; 
    line-height: 38px; 
    font-weight: 700;
}
h2 { 
    font-size: 24px; 
    line-height: 32px; 
    font-weight: 600;
}
h3 { 
    font-size: 18px; 
    line-height: 26px; 
    font-weight: 600;
}
h4 { 
    font-size: 16px; 
    line-height: 24px; 
    font-weight: 600;
}
h5 { 
    font-size: 14px; 
    line-height: 20px; 
    font-weight: 600;
}
h6 { 
    font-size: 14px; 
    line-height: 20px; 
    font-weight: 500;
}

/* Modern Navigation with Glassmorphism */
.navbar {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    transition: var(--transition-base);
}

.navbar-dark {
    background: var(--primary-color);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: var(--transition-base);
}

.navbar-brand:hover {
    transform: translateY(-2px);
}

.nav-link {
    font-weight: 500;
    color: var(--gray-700) !important;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.navbar-dark .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    background: var(--primary-50);
    transform: translateY(-1px);
}

.navbar-dark .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white !important;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::before {
    width: 100%;
}

/* Upthyme-style Navbar */
.upthyme-navbar {
    background: #0066FF !important;
    border: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    padding: 0.75rem 0 !important;
    position: sticky;
    top: 0;
    z-index: 1030;
    backdrop-filter: none !important;
}

.upthyme-navbar .navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
    color: white !important;
    background: none !important;
    -webkit-text-fill-color: white !important;
    padding: 0.5rem 1rem;
    margin: 0;
}

.upthyme-navbar .navbar-brand:hover {
    transform: none;
    opacity: 0.9;
}

.upthyme-nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 400 !important;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
    display: inline-flex;
    align-items: center;
    background: transparent !important;
}

.upthyme-nav-link:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    transform: none !important;
}

.upthyme-nav-link::before {
    display: none !important;
}

.upthyme-btn-create {
    background: rgba(255, 255, 255, 0.15) !important;
    color: white !important;
    font-weight: 500 !important;
}

.upthyme-btn-create:hover {
    background: rgba(255, 255, 255, 0.25) !important;
}

.upthyme-dropdown {
    background: white !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    border-radius: 8px !important;
    margin-top: 0.5rem !important;
}

.upthyme-dropdown .dropdown-item {
    color: #1f2937 !important;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.upthyme-dropdown .dropdown-item:hover {
    background: #f3f4f6 !important;
    color: #0066FF !important;
    transform: none;
}

.upthyme-navbar .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
}

.upthyme-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Subscription Status Widget */
.subscription-status-widget {
    transition: var(--transition-fast);
}

.subscription-status-widget:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
}

.subscription-status-widget > div {
    transition: var(--transition-fast);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.subscription-status-widget:hover > div {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Responsive - hide on mobile, show on larger screens */
@media (max-width: 991.98px) {
    .subscription-status-widget {
        display: block;
        margin: 0.5rem 0;
    }
}

/* Dropdown Improvements */
.dropdown-menu {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-xl);
    border-radius: 12px;
    padding: 0.5rem;
    animation: slideDown 0.2s ease;
    z-index: var(--z-dropdown);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    border-radius: 8px;
    padding: 0.5rem 1rem;
    transition: var(--transition-fast);
    font-weight: 500;
}

.dropdown-item:hover {
    background: var(--primary-50);
    color: var(--primary-color);
    transform: translateX(4px);
}

/* Modern Button Styles */
.btn {
    font-weight: 500;
    padding: 8px 16px;
    height: 36px;
    border-radius: 6px;
    border: none;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
    text-transform: none;
    letter-spacing: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 14px;
    line-height: 20px;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.btn:hover::before {
    opacity: 1;
}

.btn:hover {
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: scale(0.98);
}

/* Primary Button */
.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: none;
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: white;
}

/* Success Button */
.btn-success {
    background: var(--success-color);
    color: white;
    box-shadow: none;
}

.btn-success:hover {
    background: var(--success-dark);
    color: white;
}

/* Secondary Button */
.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-900);
    border: 1px solid var(--gray-200);
    box-shadow: none;
}

.btn-secondary:hover {
    background: var(--gray-200);
    color: var(--gray-900);
}

/* Outline Buttons */
.btn-outline-primary {
    background: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    box-shadow: none;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Light Button */
.btn-light {
    background: white;
    color: var(--gray-900);
    border: 1px solid var(--gray-200);
    box-shadow: none;
}

.btn-light:hover {
    background: var(--gray-50);
    color: var(--gray-900);
}

/* Button Sizes */
.btn-lg {
    padding: 10px 20px;
    height: 44px;
    font-size: 16px;
    line-height: 24px;
    border-radius: 6px;
}

.btn-sm {
    padding: 6px 12px;
    height: 32px;
    font-size: 12px;
    line-height: 16px;
    border-radius: 6px;
}

/* Sign-up vs Sign-in Distinction */
.btn-signup-primary,
.btn-signup-hero {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    box-shadow: none;
}

.btn-signup-primary:hover,
.btn-signup-hero:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-md);
    color: white;
}

.btn-signin-secondary,
.btn-signin-hero {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-weight: 500;
}

.btn-signin-secondary:hover,
.btn-signin-hero:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    color: white;
}

/* Modern Cards */
.card {
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    border-radius: 9px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--gray-200);
}

.card-header {
    background: white;
    border-bottom: 1px solid var(--gray-100);
    padding: 1.5rem;
    font-weight: 600;
    font-size: 16px;
    color: var(--gray-900);
}

[data-theme="dark"] .card {
    background: var(--gray-100);
    border-color: var(--glass-border);
}

[data-theme="dark"] .card-header {
    background: var(--gray-100);
    color: var(--gray-900);
    border-bottom-color: var(--glass-border);
}

/* Feature Cards Enhanced */
.feature-card {
    background: white;
    border: 1px solid var(--gray-100);
    border-radius: 9px;
    padding: 2rem;
    height: 100%;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.feature-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--gray-200);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1rem;
    background: var(--primary-color);
    color: white;
    box-shadow: none;
    transition: var(--transition-base);
}

.feature-card:hover .feature-icon {
    background: var(--primary-dark);
}

.feature-card h5 {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--gray-600);
    line-height: 1.8;
    margin: 0;
}

/* Landing Hero Section Modern */
.landing-hero {
    background: var(--primary-color);
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
    margin-top: -1rem;
    margin-bottom: 4rem;
    z-index: 1;
}

.landing-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.landing-hero h1 {
    font-weight: 900;
    font-size: 3.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    color: white;
}

.landing-hero .lead {
    font-size: 1.25rem;
    font-weight: 400;
    opacity: 0.95;
    max-width: 700px;
    color: rgba(255, 255, 255, 0.95);
}

/* Modern Split-Screen Authentication Layout */
.auth-container {
    display: grid;
    min-height: 100vh;
    grid-template-columns: 1fr;
    background: var(--gray-50);
}

@media (min-width: 1024px) {
    .auth-container {
        grid-template-columns: 1fr 1fr;
    }
}

/* Left Panel - Authentication Forms */
.auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: white;
}

.auth-content {
    width: 100%;
    max-width: 448px;
}

.auth-branding {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}

.auth-tagline {
    color: var(--gray-600);
    font-size: 0.875rem;
    margin: 0;
}

/* Tabs */
.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: var(--gray-100);
    border-radius: 6px;
    padding: 4px;
    margin-bottom: 2rem;
}

.auth-tab {
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    color: var(--gray-600);
    font-weight: 500;
    font-size: 0.875rem;
    border-radius: 4px;
    transition: var(--transition-fast);
    cursor: pointer;
}

.auth-tab:hover {
    color: var(--gray-900);
}

.auth-tab.active {
    background: white;
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

/* Auth Forms */
.auth-form-container {
    transition: var(--transition-base);
}

.auth-form-container.hidden {
    display: none;
}

.auth-card {
    margin-bottom: 1.5rem;
}

.auth-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.auth-card-description {
    color: var(--gray-600);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.375rem;
}

/* Right Panel - Hero Section */
.hero-panel {
    display: none;
    background: var(--primary-color);
    padding: 3rem;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .hero-panel {
        display: flex;
    }
}

.hero-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.hero-content {
    max-width: 448px;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: white;
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hero-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.feature-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.75rem;
}

.hero-feature span {
    font-size: 0.9375rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.95);
}

/* Modern Form Inputs */
.form-control,
.form-select {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    padding: 8px 12px;
    height: 36px;
    font-size: 14px;
    line-height: 20px;
    transition: var(--transition-base);
    font-weight: 400;
}

.form-control:focus,
.form-select:focus {
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px hsl(214 100% 47% / 0.15);
    outline: none;
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
    background: var(--gray-800);
    border-color: var(--gray-600);
    color: var(--gray-100);
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
    background: var(--gray-800);
    border-color: var(--primary-color);
}

/* Floating Labels */
.form-floating {
    position: relative;
    margin-bottom: 1rem;
}

.form-floating label {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    transition: var(--transition-base);
    background: white;
    padding: 0 0.25rem;
    color: var(--gray-500);
    pointer-events: none;
}

.form-floating .form-control:focus ~ label,
.form-floating .form-control:not(:placeholder-shown) ~ label {
    top: 0;
    font-size: 0.875rem;
    color: var(--primary-color);
    font-weight: 600;
}

.form-label {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Modern Tables */
.table {
    background: white;
    border-radius: 9px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table thead th {
    background: var(--gray-50);
    color: var(--gray-700);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.05em;
    padding: 12px 16px;
    border: none;
}

.table tbody tr {
    transition: var(--transition-fast);
    border-bottom: 1px solid var(--gray-100);
}

.table tbody tr:hover {
    background: var(--gray-50);
}

.table tbody td {
    padding: 12px 16px;
    font-weight: 400;
    font-size: 14px;
    color: var(--gray-800);
}

[data-theme="dark"] .table {
    background: var(--gray-800);
}

[data-theme="dark"] .table thead th {
    background: linear-gradient(135deg, var(--gray-700) 0%, var(--gray-600) 100%);
    color: var(--gray-100);
}

[data-theme="dark"] .table tbody tr {
    border-bottom-color: var(--gray-700);
}

[data-theme="dark"] .table tbody tr:hover {
    background: var(--gray-700);
}

[data-theme="dark"] .table tbody td {
    color: var(--gray-300);
}

/* Statistics Cards */
.stats-card {
    background: white;
    border-radius: 9px;
    padding: 1.5rem;
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--primary-color);
}

.stats-card:hover {
    box-shadow: var(--shadow-md);
}

.stats-card h4 {
    font-size: 32px;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}

.stats-card small {
    color: var(--gray-600);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 12px;
}

/* Modern Badges */
.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0;
    box-shadow: none;
}

.badge.bg-primary {
    background: var(--primary-color) !important;
}

.badge.bg-success {
    background: var(--success-color) !important;
}

.badge.bg-secondary {
    background: var(--gray-200) !important;
    color: var(--gray-900) !important;
}

/* Alerts Modern */
.alert {
    border-radius: 6px;
    border: 1px solid;
    padding: 12px 16px;
    font-weight: 400;
    font-size: 14px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.alert-info {
    background: hsl(214 100% 47% / 0.08);
    color: var(--info-dark);
    border-color: var(--info-color);
    border-left: 3px solid var(--info-color);
}

.alert-success {
    background: hsl(142 76% 36% / 0.08);
    color: var(--success-dark);
    border-color: var(--success-color);
    border-left: 3px solid var(--success-color);
}

.alert-warning {
    background: hsl(38 92% 50% / 0.08);
    color: var(--warning-dark);
    border-color: var(--warning-color);
    border-left: 3px solid var(--warning-color);
}

.alert-danger {
    background: hsl(0 84% 60% / 0.08);
    color: var(--danger-dark);
    border-color: var(--danger-color);
    border-left: 3px solid var(--danger-color);
}

/* Progress Bars */
.progress {
    height: 10px;
    border-radius: 10px;
    background-color: var(--gray-200);
    overflow: hidden;
    box-shadow: var(--shadow-inner);
}

.progress-bar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 10px;
    transition: width 0.6s ease;
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Video Container Enhanced */
.video-container {
    position: relative;
    background: var(--gray-900);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid hsl(214 100% 47% / 0.2);
}

#preview {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 20px;
}

#recordingStatus {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    color: white;
    font-weight: 600;
}

.recording-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

/* Interview Step Indicators Enhanced */
.step-indicator {
    padding: 1.25rem;
    border-radius: 16px;
    background: var(--gray-50);
    color: var(--gray-600);
    transition: var(--transition-base);
    border: 2px solid transparent;
}

.step-indicator.active {
    background: var(--primary-50);
    color: var(--primary-700);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-300);
}

.step-indicator.completed {
    background: var(--success-50);
    color: var(--success-700);
    border-color: var(--success-300);
}

.step-indicator i {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.step-indicator.active i {
    transform: scale(1.2) rotate(-5deg);
}

/* Job Description Modern */
.job-description {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--gray-700);
}

.job-description h1, 
.job-description h2, 
.job-description h3 {
    color: var(--primary-700);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.job-description ul, 
.job-description ol {
    padding-left: 2rem;
}

.job-description li {
    margin-bottom: 0.75rem;
}

.job-description strong {
    color: var(--gray-900);
    font-weight: 600;
}

/* RTL Support (Preserved) */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .navbar-brand {
    margin-left: 0;
    margin-right: auto;
}

[dir="rtl"] .me-1, 
[dir="rtl"] .me-2, 
[dir="rtl"] .me-3 {
    margin-left: 0.25rem !important;
    margin-right: 0 !important;
}

[dir="rtl"] .ms-1, 
[dir="rtl"] .ms-2, 
[dir="rtl"] .ms-3 {
    margin-right: 0.25rem !important;
    margin-left: 0 !important;
}

[dir="rtl"] .navbar-nav {
    flex-direction: row-reverse;
}

[dir="rtl"] .dropdown-menu {
    right: 0;
    left: auto;
}

[dir="rtl"] .progress-bar {
    right: 0;
    left: auto;
}

/* WhatsApp fields - Keep LTR even in RTL mode */
[dir="rtl"] #whatsapp_country_code,
[dir="rtl"] #whatsapp_phone_number {
    direction: ltr;
    text-align: left;
}

[dir="rtl"] .whatsapp-fields-row {
    direction: ltr;
}

[dir="rtl"] .whatsapp-fields-row small {
    text-align: left;
    display: block;
}

[dir="rtl"] #recordingStatus {
    left: 15px;
    right: auto;
}

[dir="rtl"] .language-flag {
    margin-left: 8px;
    margin-right: 0;
}

[dir="rtl"] .job-description ul, 
[dir="rtl"] .job-description ol {
    padding-right: 2rem;
    padding-left: 0;
}

/* Micro-interactions and Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in {
    animation: slideIn 0.5s ease-out;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 hsl(214 100% 47% / 0.5);
    }
    70% {
        box-shadow: 0 0 0 15px hsl(214 100% 47% / 0);
    }
    100% {
        box-shadow: 0 0 0 0 hsl(214 100% 47% / 0);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

.recording-pulse {
    animation: pulse 1.5s infinite;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    border: 3px solid var(--gray-300);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Dark Mode Toggle Button */
.theme-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    box-shadow: var(--shadow-xl);
    cursor: pointer;
    z-index: 1000;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

/* Responsive Design */
@media (max-width: 768px) {
    .landing-hero {
        text-align: center;
        padding: 4rem 0;
    }
    
    .landing-hero h1 {
        font-size: 2.5rem;
    }
    
    .landing-hero .robot-icon {
        display: none;
    }
    
    .recording-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .card-body {
        padding: 1.25rem;
    }
    
    .btn-lg {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    button, a.btn, input[type="submit"] {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        min-height: 44px;
        position: relative;
        z-index: 1;
    }
    
    .navbar-collapse {
        background: white;
        margin-top: 0.5rem;
        padding: 1rem;
        border-radius: 12px;
        box-shadow: var(--shadow-xl);
    }
    
    .theme-toggle {
        bottom: 1rem;
        right: 1rem;
    }
}

@media (max-width: 576px) {
    .landing-hero h1 {
        font-size: 2rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .table-responsive {
        font-size: 0.9rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
}

/* Footer Styles */
footer {
    margin-top: auto;
    padding: 2rem 0;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-top: 1px solid var(--glass-border);
}

/* Accessibility */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Focus States */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid currentColor;
    }
    
    .btn {
        border: 2px solid currentColor;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .btn,
    .alert,
    footer,
    .theme-toggle {
        display: none !important;
    }
    
    .card {
        border: 1px solid #000 !important;
        box-shadow: none !important;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-darker));
}

/* Language Section Styles */
.language-section {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
    border-radius: 24px;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.language-item {
    text-align: center;
    transition: transform 0.3s ease;
}

.language-item:hover {
    transform: translateY(-5px);
}

.language-icon {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.language-icon:hover {
    box-shadow: var(--shadow-xl);
    transform: scale(1.05);
}

.flag-emoji {
    font-size: 3.5rem;
}

.language-name {
    font-weight: 600;
    color: var(--gray-700);
    font-size: 1.1rem;
}

/* Language Flags */
.language-flag {
    display: inline-block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    margin-right: 8px;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 24px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    color: white;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.stats-section h2 {
    font-weight: 800;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: white;
}

.stat-item {
    text-align: center;
    position: relative;
    z-index: 1;
}

.stat-item .display-3 {
    font-weight: 900;
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 0.5rem;
    color: white;
}

.stat-item p {
    font-weight: 600;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

/* AI Status Bar */
#aiStatusBar {
    transition: all 0.3s ease;
}

/* Button Pulse Animation for AI Interview */
@keyframes buttonPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 hsl(214 100% 47% / 0.5);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px hsl(214 100% 47% / 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 hsl(214 100% 47% / 0);
    }
}

.pulse-button {
    animation: buttonPulse 2s infinite;
}

/* Compact Form Styles */
.form-label-sm {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.form-control-sm {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
}

/* Animation for pulse-slow */
@keyframes pulse-slow {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

/* Bootstrap Overrides for Consistency */
.bg-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

/* Application Source Badges */
.badge.badge-sm {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

.badge.badge-md {
    font-size: 0.875rem;
    padding: 0.35rem 0.65rem;
}

.badge.badge-lg {
    font-size: 1rem;
    padding: 0.5rem 0.85rem;
}

/* Source badge specific colors */
.badge.bg-warning {
    background-color: var(--warning-color) !important;
}

.badge.bg-success {
    background-color: var(--success-color) !important;
}

.badge.bg-secondary {
    background-color: var(--gray-500) !important;
}