<style>
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --dark-color: #212529;
    --light-color: #f8f9fa;
}

/* DEFAULT LIGHT THEME BODY */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    /* Online Image for Light Theme (Abstract Blue/White) */
    background:
        linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4)),
        url('https://www.filexl.com/bg.jpg') center/cover no-repeat fixed;
    color: #333;
    overflow-x: hidden;
    line-height: 1.6;
    padding-top: 60px;
    transition: background 0.5s ease;
}

/* DARK THEME BODY */
body[data-theme="dark"] {
    /* Online Image for Dark Theme (Dark Cyber Network) */
    background:
        linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.9)),
        url('https://www.filexl.com/bg5.jpg') center/cover no-repeat fixed;
    color: #f1f5f9;
}

/* Navbar Color Change on Dark Theme */
body[data-theme="dark"] .navbar {
    background-color: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid #334155;
}

/* TEXT COLORS FOR DARK MODE */
body[data-theme="dark"] .text-muted {
    color: #94a3b8 !important;
}

body[data-theme="dark"] .bg-light {
    background-color: #1e293b !important;
}

body[data-theme="dark"] .content-card {
    background-color: #334155;
    color: white;
}

body[data-theme="dark"] .feature-card {
    background-color: #334155;
    color: white;
    border-color: #475569;
}

body[data-theme="dark"] .feature-card h3 {
    color: white;
}


.navbar {
    background-color: rgba(13, 110, 253, 0.9);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.navbar.scrolled {
    background-color: rgba(13, 110, 253, 0.95) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
    position: relative;
    color: white !important;
}

.nav-link:hover {
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: white;
    transition: width 0.3s ease;
}

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

/* User dropdown styles */
.navbar .dropdown-menu {
    background-color: rgba(13, 110, 253, 0.95);
    border: none;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    margin-top: 8px;
}

.navbar .dropdown-item {
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.2s;
    font-weight: 500;
}

.navbar .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.navbar .dropdown-divider {
    border-color: rgba(255, 255, 255, 0.1);
}

/* Login/Register button styles */
.navbar .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    transition: all 0.3s;
}

.navbar .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.navbar .btn-warning {
    color: #212529;
    font-weight: 600;
    transition: all 0.3s;
}

.navbar .btn-warning:hover {
    background-color: #ffca28;
    transform: translateY(-2px);
}

/* User avatar/icon */
.navbar .fa-user-circle {
    font-size: 1.2rem;
}

/* Fix for dropdown menu on mobile */
@media (max-width: 991.98px) {
    .navbar .dropdown-menu {
        position: static !important;
        transform: none !important;
        margin-top: 0;
        border: none;
        background-color: transparent;
        padding-left: 15px;
    }

    .navbar .dropdown-item {
        padding: 8px 0;
        color: rgba(255, 255, 255, 0.8) !important;
    }

    .navbar .dropdown-item:hover {
        background-color: transparent !important;
        color: white !important;
    }

    .navbar .dropdown-divider {
        display: none;
    }

    /* Keep dropdown open when clicked */
    .navbar .dropdown-toggle::after {
        display: inline-block;
        margin-left: 0.255em;
        vertical-align: 0.255em;
        content: "";
        border-top: 0.3em solid;
        border-right: 0.3em solid transparent;
        border-bottom: 0;
        border-left: 0.3em solid transparent;
        transition: transform 0.3s;
    }

    .navbar .dropdown-toggle[aria-expanded="true"]::after {
        transform: rotate(-180deg);
    }

    .navbar .nav-item {
        margin-bottom: 5px;
    }

    .navbar .btn {
        width: 100%;
        margin-bottom: 10px;
        text-align: left;
        padding-left: 15px;
    }
}

.hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: white;
    text-align: center;
    padding: 30px 0;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn-upload {
    background-color: var(--warning-color);
    color: var(--dark-color);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-upload:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.6);
    background-color: #ffca28;
    color: var(--dark-color);
}

.btn-upload::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
    transition: all 0.3s ease;
    pointer-events: none;
}

.btn-upload:hover::after {
    left: 100%;
}

.feature-card {
    background: white;
    border-radius: 15px;
    padding: 30px 20px;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--info-color));
    transition: all 0.3s ease;
}

.feature-card:hover::before {
    height: 8px;
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(13, 110, 253, 0.1);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    background: rgba(13, 110, 253, 0.2);
}

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

.feature-card p {
    text-align: justify;
    color: var(--secondary-color);
    font-size: 0.95rem;
}

.content-card {
    background: white;
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.content-card h2 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 15px;
}

.content-card h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--info-color));
    border-radius: 2px;
}

.content-card p {
    text-align: justify;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.content-card .lead {
    font-size: 1.1rem;
    font-weight: 500;
}

.list-group-item {
    border-left: 0;
    border-right: 0;
    padding: 1rem 1.25rem;
    transition: all 0.2s ease;
}

.list-group-item:hover {
    background-color: rgba(13, 110, 253, 0.05);
    transform: translateX(5px);
}

.faq-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.accordion-button {
    font-weight: 500;
    padding: 1.25rem;
}

.accordion-button:not(.collapsed) {
    background-color: rgba(13, 110, 253, 0.05);
    color: var(--primary-color);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(13, 110, 253, 0.25);
}

.accordion-body {
    padding: 1.25rem;
}

/* Improved Footer Styles */
.footer {
    background-color: #212529;
    /* Ensure dark background */
    color: #ffffff;
    padding: 30px 0 10px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--info-color));
}

.footer .nav-link {
    padding: 0.5rem 0.75rem;
    transition: all 0.2s ease;
    border-radius: 4px;
}

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

/* Mobile-specific footer styles */
@media (max-width: 767.98px) {
    .footer .nav-link {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .footer .row {
        flex-direction: column;
    }

    .footer .nav {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer .nav-item {
        margin: 5px;
        width: 45%;
        text-align: center;
    }

    .footer .nav-link {
        padding: 8px 12px;
        justify-content: center;
        background-color: rgba(255, 255, 255, 0.05);
        border-radius: 6px;
    }

    .footer .nav-link i {
        margin-right: 8px;
    }
}

/* Small mobile devices */
@media (max-width: 575.98px) {
    .footer .nav-item {
        width: 100%;
        margin: 3px 0;
        margin-bottom: 30px;
        text-align: center;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

/* Pulse animation for CTA */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

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

/* Floating animation */
@keyframes floating {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

/* Fix for mobile menu */
.navbar-collapse {
    transition: all 0.3s ease;
}

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

.resume-badge {
    font-size: 1.2rem;
    margin-top: 10px;
    color: #fff;
    background: linear-gradient(90deg, #ff5e00, #ff00aa);
    padding: 8px 16px;
    border-radius: 50px;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(255, 94, 0, 0.4);
}

.highlight-text {
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.highlight-resume {
    color: yellow;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    border-bottom: 2px dashed #ff6b00;
    padding-bottom: 2px;
}

.storage-badge {
    font-size: 1.1rem;
    margin-top: 15px;
    color: #fff;
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    padding: 8px 16px;
    border-radius: 50px;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0, 198, 255, 0.4);
}

/* NEW: Social Proof Section */
.social-proof {
    /* distinct dark background */
    background: rgba(0, 0, 0, 0.75); 
    /* Blur effect behind the box */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 25px;
    margin: 2rem auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 700px;
}

/* 3. Typography for Stats */
.stat-value {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: #e0e0e0; /* Bright Grey, not transparent */
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.user-count {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffd700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Trust Badges - Responsive */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.trust-badge {
    background: rgba(33, 37, 41, 0.9); /* Almost solid dark grey */
    color: #fff;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Desktop Dividers for Stats */
@media (min-width: 768px) {
    .border-start-md { border-left: 1px solid rgba(255,255,255,0.2); }
    .border-end-md { border-right: 1px solid rgba(255,255,255,0.2); }
}

/* Testimonials */
.testimonial-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-left: 5px solid var(--primary-color);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
    color: #555;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-color);
}

/* CTA Sections */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .feature-card {
        margin-bottom: 20px;
    }

    .content-card {
        padding: 25px;
    }

    /* Mobile adjustments */
    @media (max-width: 768px) {
        .trust-badges {
            gap: 0.75rem;
            margin: 1.5rem 0;
            flex-wrap: nowrap;
            /* Force single line */
            overflow-x: auto;
            /* Allow horizontal scrolling if needed */
            justify-content: flex-start;
            /* Start from left */
            padding-bottom: 0.5rem;
            -webkit-overflow-scrolling: touch;
            /* Smooth scrolling on iOS */
        }

        .trust-badge {
            padding: 0.6rem 1.2rem;
            font-size: 0.85rem;
            flex: 0 0 auto;
            /* Don't grow or shrink */
        }

        .trust-badge i {
            font-size: 0.9rem;
        }
    }

    /* Extra small screens */
    @media (max-width: 480px) {
        .trust-badges {
            gap: 0.5rem;
        }

        .trust-badge {
            padding: 0.5rem 1rem;
            font-size: 0.8rem;
        }

        .trust-badge i {
            font-size: 0.8rem;
        }
    }

    /* Hide scrollbar but keep functionality */
    .trust-badges::-webkit-scrollbar {
        display: none;
    }

    .trust-badges {
        -ms-overflow-style: none;
        /* IE and Edge */
        scrollbar-width: none;
        /* Firefox */
    }

    @media (max-width: 576px) {
        .hero-title {
            font-size: 2rem;
        }

        .hero-subtitle {
            font-size: 1rem;
        }

        .content-card {
            padding: 20px;
        }
    }
}

/* START SCRIPT.PHP UPLOAD FORM STYLES */
.upload-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.drop-area {
    border: 2px dashed var(--primary-color);
    border-radius: 12px;
    padding: 3rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: rgba(13, 110, 253, 0.05);
    margin-bottom: 1.5rem;
}

.drop-area.highlight {
    background-color: rgba(13, 110, 253, 0.1);
    border-color: var(--info-color);
}

.drop-area i {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.drag-text {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.support-text {
    font-size: 0.9rem;
    color: var(--secondary-color);
}

/* Rest of your original upload form styles remain exactly the same */
.files-list {
    margin-bottom: 1.5rem;
    max-height: 300px;
    overflow-y: auto;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background-color: rgba(13, 110, 253, 0.05);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(13, 110, 253, 0.1);
}

.file-item:last-child {
    margin-bottom: 0;
}

.file-item i {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-right: 0.75rem;
}

.file-item-info {
    flex: 1;
}

.file-item-name {
    font-weight: 500;
    margin-bottom: 0.25rem;
    word-break: break-all;
}

.file-item-size {
    font-size: 0.8rem;
    color: var(--secondary-color);
}

.file-item-remove {
    cursor: pointer;
    color: var(--danger-color);
    padding: 0.25rem;
    transition: all 0.2s;
}

.file-item-remove:hover {
    transform: scale(1.1);
}

.file-item-progress {
    width: 60px;
    height: 4px;
    background-color: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
    margin-right: 0.75rem;
}

.file-item-progress-fill {
    height: 100%;
    width: 0%;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.batch-info {
    background-color: rgba(25, 135, 84, 0.1);
    border: 1px solid rgba(25, 135, 84, 0.2);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: none;
}

.batch-link {
    word-break: break-all;
    font-weight: 500;
    color: var(--success-color);
}

.files-count {
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

#preview {
    max-width: 100%;
    max-height: 300px;
    margin: 0 auto 1.5rem;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.progress-container {
    margin-bottom: 1.5rem;
    display: none;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.progress-percent {
    font-weight: 600;
    color: var(--primary-color);
}

.progress-stats {
    display: flex;
    gap: 1.5rem;
}

.progress-stat {
    font-size: 0.85rem;
    color: var(--secondary-color);
}

.progress-bar {
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-bar-fill {
    height: 100%;
    width: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.btn-upload {
    font-weight: 600;
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.3s;
}

.error-message {
    color: var(--danger-color);
    margin-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
    display: none;
}

.social-share {
    margin-top: 2.5rem;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.social-share h5 {
    font-size: 1rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.whatsapp {
    background-color: #25D366;
}

.twitter {
    background-color: #1DA1F2;
}

.telegram {
    background-color: #0088cc;
}

.facebook {
    background-color: #1877F2;
}

.email {
    background-color: var(--secondary-color);
}

.result-container {
    margin-top: 1.5rem;
    display: none;
}

.url-input {
    cursor: pointer;
}

.copy-btn.copied,
.file-copy-btn.copied {
    background-color: var(--success-color) !important;
    border-color: var(--success-color) !important;
}

@media (max-width: 768px) {
    .upload-container {
        padding: 1.5rem;
        margin: 1rem;
    }

    .drop-area {
        padding: 2rem 1rem;
    }

    .progress-stats {
        flex-direction: column;
        gap: 0.5rem;
    }

    .file-item {
        padding: 0.5rem;
    }

    .file-item-progress {
        width: 40px;
        margin-right: 0.5rem;
    }
}

#dropArea .drag-text {
    color: #0056b3;
}

#dropArea .support-text {
    color: #0066cc;
}

/* END SCRIPT.PHP UPLOAD FORM STYLES */
/* --- DARK THEME FIXES FOR INDEX.PHP --- */

/* 1. Force all Headings (H1-H6) to be White in Dark Mode */
body[data-theme="dark"] h1,
body[data-theme="dark"] h2,
body[data-theme="dark"] h3,
body[data-theme="dark"] h4,
body[data-theme="dark"] h5,
body[data-theme="dark"] h6 {
    color: #ffffff !important;
}

/* 2. Fix Content Cards (The "How FileXL Works" box) */
body[data-theme="dark"] .content-card {
    background-color: #1e293b !important;
    /* Dark Blue-Grey Background */
    border: 1px solid #475569 !important;
    /* Visible Border */
    color: #f1f5f9 !important;
    /* White Text */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    /* Stronger shadow */
}

/* 3. Fix Feature Cards (The Grid items) */
body[data-theme="dark"] .feature-card {
    background-color: #1e293b !important;
    border: 1px solid #475569 !important;
    color: #f1f5f9 !important;
}

/* 4. CRITICAL: Fix the List Items (The white box in your screenshot) */
/* Bootstrap forces these white by default, we must override them */
body[data-theme="dark"] .list-group-item {
    background-color: transparent !important;
    /* Remove white background */
    color: #e2e8f0 !important;
    /* Light Grey Text */
    border-bottom: 1px solid #334155 !important;
}

/* 5. Fix Bold Text inside lists (Make them pop) */
body[data-theme="dark"] .list-group-item strong {
    color: #60a5fa !important;
    /* Light Blue for emphasis */
}

/* 6. Fix General Paragraphs */
body[data-theme="dark"] p,
body[data-theme="dark"] .lead {
    color: #cbd5e1 !important;
}

/* 7. Fix Footer Links */
body[data-theme="dark"] .footer .nav-link {
    color: #ffffff !important;
    /* Pure white for maximum contrast */
}

/* --- NEW FIX: Dark Theme Text for Alert-Warning Banner --- */

/* 8. Target the Custom Branding Alert in Dark Mode */
body[data-theme="dark"] #customBrandingAlert {
    /* Use a slightly different dark background for alerts to make them stand out */
    background-color: #332700 !important;
    /* Very dark yellow/brown tone */
    border-color: #594000 !important;
}

/* 9. Force all Text inside the Custom Branding Alert to be Light/White */
body[data-theme="dark"] #customBrandingAlert,
body[data-theme="dark"] #customBrandingAlert p,
body[data-theme="dark"] #customBrandingAlert h4 {
    color: #fff !important;
}

/* 10. Fix Button Visibility inside the Custom Branding Alert (Dark Mode) */
body[data-theme="dark"] #customBrandingAlert .btn-outline-dark {
    color: #fff !important;
    /* Force text color to white */
    border-color: #fff !important;
    /* Force border color to white */
    background-color: transparent !important;
    /* Keep background clear */
}

/* 11. Fix Hover state for the button in Dark Mode */
body[data-theme="dark"] #customBrandingAlert .btn-outline-dark:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    /* Light hover effect */
    color: #fff !important;
}

/* --- ACCESSIBILITY CONTRAST FIXES --- */

/* 1. Fix "Register for Free" Button 
   Makes the text darker (brownish) so it is readable on white background 
*/
.btn-outline-warning {
    color: #664d03 !important;
    /* Dark text for contrast */
    border-color: #ffc107 !important;
}

.btn-outline-warning:hover {
    color: #000 !important;
    /* Black text on hover */
    background-color: #ffc107 !important;
}

/* 2. Fix "Custom Branding" Alert Text in Light Mode 
   Ensures the text inside the yellow box is very dark 
*/
.alert-warning {
    color: #332700;
    /* Very dark brown text */
    border-color: #ffc107;
}

.alert-warning .alert-heading {
    color: #000;
    /* Heading inside alert is pure black */
}

/* 3. Dark Mode Adjustments for the new Contrast Rules */
body[data-theme="dark"] .btn-outline-warning {
    color: #ffc107 !important;
    /* In dark mode, light yellow text is fine */
    border-color: #ffc107 !important;
}

body[data-theme="dark"] .btn-outline-warning:hover {
    color: #000 !important;
    background-color: #ffc107 !important;
}
</style>