/* ============================================
   TRIGGER APP - CUSTOM STYLES
   ============================================ */

/* ============================================
   CSS VARIABLES - Light Theme (Default)
   ============================================ */
:root {
    /* Primary Colors */
    --primary-color: #0059b9;
    --primary-dark: #004494;
    --primary-light: #1a6ec9;
    --secondary-color: #445e8f;
    --secondary-dark: #2f4366;
    --secondary-light: #5a73a3;

    /* Accent Colors */
    --accent-blue: #4a90e2;
    --accent-light: #e8f2ff;

    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    --bg-card: #ffffff;

    /* Text Colors */
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --text-muted: #adb5bd;
    --text-light: #ffffff;

    /* Border Colors */
    --border-color: #dee2e6;
    --border-light: #e9ecef;

    /* Shadow Colors */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ============================================
   Dark Theme Variables
   ============================================ */
[data-theme="dark"] {
    /* Primary Colors */
    --primary-color: #acc7ff;
    --primary-dark: #8ba8e3;
    --primary-light: #c5d9ff;
    --secondary-color: #8ba8e3;
    --secondary-dark: #7090cc;
    --secondary-light: #a5bfef;

    /* Accent Colors */
    --accent-blue: #6ba3ff;
    --accent-light: #1a2942;

    /* Background Colors */
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-tertiary: #21262d;
    --bg-card: #161b22;

    /* Text Colors */
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;
    --text-light: #0d1117;

    /* Border Colors */
    --border-color: #30363d;
    --border-light: #21262d;

    /* Shadow Colors */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);
}

/* ============================================
   GLOBAL STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
        Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition:
        background-color var(--transition-normal),
        color var(--transition-normal);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================
   NAVIGATION BAR
   ============================================ */
.navbar {
    background-color: var(--bg-primary);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    transition: all var(--transition-normal);
}

[data-theme="dark"] .navbar {
    background-color: rgba(13, 17, 23, 0.95);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color) !important;
    transition: color var(--transition-fast);
    display: flex;
    align-items: center;
}

.navbar-brand:hover {
    color: var(--primary-dark) !important;
}

.navbar-brand i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

[data-theme="dark"] .navbar-brand i {
    color: var(--primary-color);
}

.brand-name {
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-link {
    color: var(--text-primary) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

.theme-toggle {
    border: none;
    background: none;
    color: var(--text-primary) !important;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: all var(--transition-fast);
}

.theme-toggle:hover {
    color: var(--primary-color) !important;
    transform: rotate(20deg);
}

.theme-toggle i {
    color: var(--text-primary);
}

.navbar-toggler {
    border-color: var(--border-color);
}

.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(0, 89, 185, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

[data-theme="dark"] .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(172, 199, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    min-height: 100vh;
    padding-top: 80px;
    background: linear-gradient(
        135deg,
        var(--bg-primary) 0%,
        var(--bg-secondary) 100%
    );
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(
        circle,
        var(--accent-light) 0%,
        transparent 70%
    );
    opacity: 0.3;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

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

.hero-section .lead {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
}

.hero-buttons .btn {
    min-width: 180px;
    font-weight: 600;
    transition: all var(--transition-normal);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff !important;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: #fff !important;
}

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

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Dark mode button adjustments */
[data-theme="dark"] .btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

[data-theme="dark"] .btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--bg-primary) !important;
}

.hero-stats {
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-item i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.stat-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.stat-item p {
    color: var(--text-secondary);
}

.stat-item .small {
    font-size: 0.875rem;
}

/* ============================================
   PHONE MOCKUP ANIMATION
   ============================================ */
.hero-illustration {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 600px;
}

.phone-mockup {
    position: relative;
    width: 300px;
    height: 600px;
    background: var(--bg-card);
    border-radius: 40px;
    box-shadow: var(--shadow-xl);
    border: 12px solid var(--border-color);
    overflow: hidden;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        var(--accent-light) 0%,
        var(--bg-secondary) 100%
    );
    position: relative;
}

.map-visual {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.zone-circle {
    position: absolute;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    opacity: 0.3;
    animation: pulse 3s ease-in-out infinite;
}

.zone-1 {
    width: 200px;
    height: 200px;
    animation-delay: 0s;
}

.zone-2 {
    width: 300px;
    height: 300px;
    animation-delay: 1s;
}

.zone-3 {
    width: 400px;
    height: 400px;
    animation-delay: 2s;
}

.location-pin {
    position: absolute;
    font-size: 3rem;
    color: var(--primary-color);
    animation: bounce 2s ease-in-out infinite;
    z-index: 10;
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.6;
    }
}

@keyframes bounce {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features-section {
    background-color: var(--bg-secondary);
    padding: 5rem 0;
}

.features-section h2 {
    color: var(--text-primary);
}

.features-section .lead {
    color: var(--text-secondary) !important;
}

.feature-card {
    background-color: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    transition: all var(--transition-normal);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(
        135deg,
        var(--primary-color) 0%,
        var(--secondary-color) 100%
    );
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all var(--transition-normal);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-icon i {
    font-size: 2rem;
    color: #fff;
}

.feature-card h3 {
    color: var(--text-primary) !important;
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-secondary) !important;
    margin-bottom: 0;
    line-height: 1.7;
}

/* ============================================
   HOW IT WORKS SECTION
   ============================================ */
.how-it-works-section {
    background-color: var(--bg-primary);
    padding: 5rem 0;
}

.how-it-works-section h2 {
    color: var(--text-primary);
}

.how-it-works-section .lead {
    color: var(--text-secondary) !important;
}

.step-card {
    position: relative;
    padding: 2rem;
    background-color: var(--bg-card);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all var(--transition-normal);
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(
        135deg,
        var(--primary-color) 0%,
        var(--secondary-color) 100%
    );
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    box-shadow: var(--shadow-md);
}

.step-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin: 2rem 0 1rem;
}

.step-card h3 {
    color: var(--text-primary) !important;
    margin-bottom: 1rem;
    font-weight: 600;
}

.step-card p {
    color: var(--text-secondary) !important;
    margin-bottom: 0;
}

/* ============================================
   USE CASES SECTION
   ============================================ */
.use-cases-section {
    background-color: var(--bg-secondary);
    padding: 5rem 0;
}

.use-cases-section h2 {
    color: var(--text-primary);
}

.use-cases-section .lead {
    color: var(--text-secondary) !important;
}

.use-case-card {
    background-color: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    transition: all var(--transition-normal);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    height: 100%;
}

/* Contact Section - All rounded elements */
.alert {
    border-radius: 12px;
}

.form-control,
.form-select {
    border-radius: 12px;
}

.form-control-lg,
.form-select-lg {
    border-radius: 12px;
}

.btn-lg {
    border-radius: 12px;
}

#contactForm .form-control,
#contactForm .form-select {
    border-radius: 12px;
}

.use-case-card:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.use-case-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: linear-gradient(
        135deg,
        var(--accent-light) 0%,
        var(--bg-tertiary) 100%
    );
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.use-case-icon i {
    font-size: 1.75rem;
    color: var(--primary-color);
}

.use-case-card h3 {
    color: var(--text-primary) !important;
    font-weight: 600;
}

.use-case-card p {
    color: var(--text-secondary) !important;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, #0059b9 0%, #003d7a 100%) !important;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

/* Force dark background in both themes for contrast */
[data-theme="light"] .cta-section {
    background: linear-gradient(135deg, #0059b9 0%, #003d7a 100%) !important;
}

[data-theme="dark"] .cta-section {
    background: linear-gradient(135deg, #004494 0%, #002d5c 100%) !important;
}

.cta-section::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -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);
    }
}

.cta-box {
    position: relative;
    z-index: 2;
}

.cta-section h2,
.cta-section p,
.cta-section .lead,
.cta-section .display-5,
.cta-section .fw-bold {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cta-section * {
    color: inherit;
}

.cta-buttons .btn-light {
    background-color: #fff;
    color: #0059b9 !important;
    border: none;
    font-weight: 600;
    transition: all var(--transition-normal);
}

.cta-buttons .btn-light:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: #0059b9 !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .cta-buttons .btn-light {
    background-color: rgba(255, 255, 255, 0.95);
    color: #0059b9 !important;
}

[data-theme="dark"] .cta-buttons .btn-light:hover {
    background-color: #fff;
    color: #0059b9 !important;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background-color: var(--bg-tertiary);
    border-top: 1px solid var(--border-color);
}

.footer h5,
.footer h6 {
    color: var(--text-primary);
    font-weight: 600;
}

.footer .text-muted {
    color: var(--text-secondary) !important;
}

.footer p {
    color: var(--text-secondary);
}

.footer a {
    transition: color var(--transition-fast);
}

.footer a:hover {
    color: var(--primary-color) !important;
}

.social-links a {
    font-size: 1.5rem;
    transition: all var(--transition-fast);
}

.social-links a:hover {
    transform: translateY(-3px);
}

/* ============================================
   LEGAL PAGES STYLES
   ============================================ */
.legal-header {
    padding-top: 120px;
    padding-bottom: 60px;
    background: linear-gradient(
        135deg,
        var(--bg-primary) 0%,
        var(--bg-secondary) 100%
    );
}

.legal-content {
    background-color: var(--bg-secondary);
}

.legal-document {
    background-color: var(--bg-card);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.legal-section {
    margin-bottom: 3rem;
}

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-section h2 {
    color: var(--text-primary) !important;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.legal-section p {
    color: var(--text-secondary) !important;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-section ul {
    color: var(--text-secondary) !important;
    line-height: 1.8;
    padding-left: 1.5rem;
}

.legal-section ul li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary) !important;
}

.legal-section strong {
    color: var(--text-primary) !important;
    font-weight: 600;
}

.alert-info {
    background-color: var(--accent-light);
    border-color: var(--primary-color);
    color: var(--text-primary);
}

[data-theme="dark"] .alert-info {
    background-color: rgba(172, 199, 255, 0.1);
    border-color: var(--primary-color);
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media (max-width: 991px) {
    .hero-section {
        min-height: auto;
        padding: 100px 0 50px;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-illustration {
        display: none;
    }

    .navbar-collapse {
        background-color: var(--bg-card);
        padding: 1rem;
        margin-top: 1rem;
        border-radius: 8px;
        box-shadow: var(--shadow-md);
    }

    .nav-link::after {
        display: none;
    }
}

@media (max-width: 767px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section .lead {
        font-size: 1.1rem;
    }

    .hero-buttons .btn {
        min-width: 100%;
        margin-bottom: 1rem;
    }

    .hero-stats {
        margin-top: 2rem;
    }

    .stat-item i {
        font-size: 1.5rem;
    }

    .stat-item h3 {
        font-size: 1.2rem;
    }

    .feature-card,
    .step-card,
    .use-case-card {
        margin-bottom: 1.5rem;
    }

    .legal-document {
        padding: 1.5rem;
    }
}

@media (max-width: 575px) {
    .display-3 {
        font-size: 2rem;
    }

    .display-4 {
        font-size: 2rem;
    }

    .display-5 {
        font-size: 1.75rem;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-primary {
    color: var(--primary-color) !important;
}

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

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

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

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

/* Ensure all headings and text are visible in dark mode */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-primary) !important;
}

p {
    color: var(--text-secondary) !important;
}

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

.display-3,
.display-4,
.display-5 {
    color: var(--text-primary) !important;
}

/* Ensure all Bootstrap text utilities work in dark mode */
[data-theme="dark"] .text-dark {
    color: var(--text-primary) !important;
}

[data-theme="dark"] small,
[data-theme="dark"] .small {
    color: var(--text-secondary) !important;
}

/* ============================================
   DARK MODE SPECIFIC FIXES
   ============================================ */
[data-theme="dark"] {
    /* Ensure all text is visible */
    color: var(--text-primary);
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6,
[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(--text-primary) !important;
}

[data-theme="dark"] p,
[data-theme="dark"] span,
[data-theme="dark"] li {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .lead {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .display-3,
[data-theme="dark"] .display-4,
[data-theme="dark"] .display-5 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .hero-section h1 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .hero-section .lead {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .stat-item h3 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .stat-item p,
[data-theme="dark"] .stat-item .small {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .feature-card h3,
[data-theme="dark"] .step-card h3,
[data-theme="dark"] .use-case-card h3 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .feature-card p,
[data-theme="dark"] .step-card p,
[data-theme="dark"] .use-case-card p {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .footer h5,
[data-theme="dark"] .footer h6 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .footer p,
[data-theme="dark"] .footer .text-muted {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .cta-section h2,
[data-theme="dark"] .cta-section p,
[data-theme="dark"] .cta-section .lead,
[data-theme="dark"] .cta-section .display-5,
[data-theme="dark"] .cta-section .fw-bold {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .cta-section h2,
[data-theme="light"] .cta-section p,
[data-theme="light"] .cta-section .lead,
[data-theme="light"] .cta-section .display-5,
[data-theme="light"] .cta-section .fw-bold {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .legal-section h2 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .legal-section p,
[data-theme="dark"] .legal-section li {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .legal-section strong {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .legal-header h1 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .legal-header .lead {
    color: var(--text-secondary) !important;
}

/* ============================================
   CARD STYLES FOR DARK MODE
   ============================================ */
[data-theme="dark"] .card {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
    border-radius: 16px !important;
}

[data-theme="dark"] .card-body {
    background-color: var(--bg-card) !important;
}

[data-theme="dark"] .card-title,
[data-theme="dark"] .card-text {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .card-text {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .badge {
    color: #fff !important;
}

/* ============================================
   FORM STYLES FOR DARK MODE
   ============================================ */
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
    background-color: var(--bg-tertiary) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
    border-radius: 12px !important;
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
    background-color: var(--bg-tertiary) !important;
    border-color: var(--primary-color) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .form-control::placeholder {
    color: var(--text-muted) !important;
}

[data-theme="dark"] .form-label {
    color: var(--text-primary) !important;
}

/* ============================================
   ACCORDION STYLES FOR DARK MODE
   ============================================ */
[data-theme="dark"] .accordion-item {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .accordion-button {
    background-color: var(--bg-card) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .accordion-button:not(.collapsed) {
    background-color: var(--bg-tertiary) !important;
    color: var(--primary-color) !important;
}

[data-theme="dark"] .accordion-body {
    background-color: var(--bg-card) !important;
    color: var(--text-secondary) !important;
}

/* ============================================
   ALERT STYLES FOR DARK MODE
   ============================================ */
[data-theme="dark"] .alert-info {
    background-color: rgba(172, 199, 255, 0.1) !important;
    border-color: var(--primary-color) !important;
    color: var(--text-primary) !important;
    border-radius: 12px !important;
}

[data-theme="dark"] .alert {
    color: var(--text-primary) !important;
    border-radius: 12px !important;
}

/* ============================================
   PAGINATION STYLES FOR DARK MODE
   ============================================ */
[data-theme="dark"] .page-link {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
    color: var(--primary-color) !important;
}

[data-theme="dark"] .page-link:hover {
    background-color: var(--bg-tertiary) !important;
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
}

[data-theme="dark"] .page-item.active .page-link {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: var(--bg-primary) !important;
}

[data-theme="dark"] .page-item.disabled .page-link {
    background-color: var(--bg-tertiary) !important;
    border-color: var(--border-color) !important;
    color: var(--text-muted) !important;
}

/* ============================================
   ICON BOX STYLES FOR DARK MODE
   ============================================ */
[data-theme="dark"] .icon-box {
    background: linear-gradient(
        135deg,
        var(--primary-color) 0%,
        var(--secondary-color) 100%
    ) !important;
}

/* ============================================
   ADDITIONAL TEXT FIXES FOR DARK MODE
   ============================================ */
[data-theme="dark"] .bg-light {
    background-color: var(--bg-tertiary) !important;
}

[data-theme="dark"] .text-dark {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .border {
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .rounded {
    border-color: var(--border-color) !important;
}

/* ============================================
   SMOOTH ANIMATIONS
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .navbar,
    .hero-illustration,
    .cta-section,
    .footer,
    .theme-toggle {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }
}
