/* Dark Mode CSS - Only applies when data-theme="dark" is set */

/* Dark Mode Toggle Button - Always visible */
.theme-toggle {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    left: auto !important;
    bottom: auto !important;
    z-index: 1040 !important; /* below Bootstrap modal (1050) */
    background: linear-gradient(135deg, #1de5af 0%, #00d4a0 100%) !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 10px 20px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(29, 229, 175, 0.3) !important;
    transition: none !important; /* Disable transitions to prevent movement */
    /* Prevent any movement */
    transform: none !important;
    will-change: auto !important;
    /* Force positioning */
    margin: 0 !important;
    float: none !important;
    /* Prevent any CSS inheritance issues */
    inset: auto !important;
}

/* Mobile responsive positioning for theme toggle */
@media (max-width: 768px) {
    .theme-toggle {
        top: auto !important;
        bottom: 20px !important;
        right: 20px !important;
        left: auto !important;
        padding: 0 !important;
        width: 56px !important;
        height: 56px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
        position: fixed !important;
        transform: none !important;
        transition: none !important;
        will-change: auto !important;
        z-index: 1040 !important;
        /* Prevent any movement */
        margin: 0 !important;
        float: none !important;
        /* Force bottom-right positioning */
        inset: auto auto 20px 20px !important;
    }
    
    .theme-toggle .theme-text {
        display: none !important;
    }
    
    .theme-toggle i {
        font-size: 20px !important;
        margin: 0 !important;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .theme-toggle {
        bottom: 15px !important;
        right: 15px !important;
        left: auto !important;
        width: 50px !important;
        height: 50px !important;
        position: fixed !important;
        transform: none !important;
        transition: none !important;
        will-change: auto !important;
        z-index: 1040 !important;
        margin: 0 !important;
        float: none !important;
        /* Force bottom-right positioning for small screens */
        inset: auto auto 15px 15px !important;
    }
    
    .theme-toggle i {
        font-size: 18px !important;
        margin: 0 !important;
    }
}

/* Hide theme toggle when any Bootstrap modal is open to prevent tap conflicts */
.modal.show ~ .theme-toggle,
body.modal-open .theme-toggle {
    display: none !important;
}

/* Additional mobile fixes to prevent button movement */
@media (max-width: 768px) {
    .theme-toggle {
        /* Force fixed positioning and prevent any movement */
        position: fixed !important;
        top: auto !important;
        bottom: 20px !important;
        right: 20px !important;
        left: auto !important;
        transform: none !important;
        transition: none !important;
        will-change: auto !important;
        /* Prevent any CSS that might cause movement */
        margin: 0 !important;
        padding: 0 !important;
        float: none !important;
        /* Ensure it stays above all content */
        z-index: 9999 !important;
        /* Prevent touch issues */
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        /* Lock the button in place */
        pointer-events: auto;
        /* Prevent any focus or active states from moving the button */
        outline: none !important;
        border: none !important;
        /* Force positioning with inset - BOTTOM RIGHT */
        inset: auto auto 20px 20px !important;
        /* Prevent any CSS inheritance issues */
        box-sizing: border-box !important;
        /* Force right alignment */
        text-align: right !important;
        /* Override any conflicting positioning */
        position: fixed !important;
        right: 20px !important;
        left: auto !important;
        bottom: 20px !important;
        top: auto !important;
    }
    
    /* Prevent any parent elements from affecting positioning */
    .theme-toggle * {
        transform: none !important;
        transition: none !important;
        will-change: auto !important;
    }
    
    /* Prevent button movement during click/focus states */
    .theme-toggle:active,
    .theme-toggle:focus,
    .theme-toggle:focus-visible {
        position: fixed !important;
        top: auto !important;
        bottom: 20px !important;
        right: 20px !important;
        left: auto !important;
        transform: none !important;
        outline: none !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
        /* Force positioning */
        inset: auto auto 20px 20px !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Prevent any hover effects that might cause movement */
    .theme-toggle:hover {
        position: fixed !important;
        top: auto !important;
        bottom: 20px !important;
        right: 20px !important;
        left: auto !important;
        transform: none !important;
        inset: auto auto 20px 20px !important;
    }
    
    /* Absolute positioning lock for all possible states */
    .theme-toggle,
    .theme-toggle:before,
    .theme-toggle:after,
    .theme-toggle:active,
    .theme-toggle:focus,
    .theme-toggle:focus-visible,
    .theme-toggle:hover,
    .theme-toggle:visited,
    .theme-toggle:link {
        position: fixed !important;
        top: auto !important;
        bottom: 20px !important;
        right: 20px !important;
        left: auto !important;
        transform: none !important;
        inset: auto auto 20px 20px !important;
        margin: 0 !important;
        padding: 0 !important;
        float: none !important;
        clear: none !important;
        /* Force bottom-right positioning */
        text-align: right !important;
        /* Override any conflicting CSS */
        position: fixed !important;
        right: 20px !important;
        left: auto !important;
        bottom: 20px !important;
        top: auto !important;
    }
}

.theme-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.theme-toggle i {
    font-size: 16px;
}

/* Dark Mode Styles - Only when data-theme="dark" */
html[data-theme="dark"] body {
    background-color: #000000 !important;
    color: #ffffff !important;
}

html[data-theme="dark"] .hero-section {
    background: #000000 !important;
}

html[data-theme="dark"] .hero-section::before {
    opacity: 0.05 !important;
}

html[data-theme="dark"] h1 {
    color: #ffffff !important;
}

html[data-theme="dark"] h1 span {
    background: linear-gradient(135deg, #1de5af 0%, #8b5cf6 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

html[data-theme="dark"] h2 {
    color: #ffffff !important;
}

html[data-theme="dark"] h3 {
    color: #ffffff !important;
}

html[data-theme="dark"] h4 {
    color: #ffffff !important;
}

html[data-theme="dark"] h5 {
    color: #ffffff !important;
}

html[data-theme="dark"] h6 {
    color: #ffffff !important;
}

html[data-theme="dark"] p {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .lead {
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .hero-badge {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%) !important;
    color: white !important;
}

html[data-theme="dark"] .search-section {
    background: rgba(0, 0, 0, 0.95) !important;
    border-color: rgba(51, 51, 51, 0.8) !important;
}

html[data-theme="dark"] .search-input {
    background: white !important;
    border-color: #333333 !important;
    color: #000000 !important;
}

html[data-theme="dark"] .search-input::placeholder {
    color: #666666 !important;
}

html[data-theme="dark"] .search-btn {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 12px 20px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

html[data-theme="dark"] .search-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3) !important;
}

/* Fix search button in light mode */
.search-btn {
    background: linear-gradient(135deg, #1de5af 0%, #00d4a0 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 12px 20px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.search-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(29, 229, 175, 0.3) !important;
}

/* Only apply dark styling to job cards on the job listings page, not the index page */
html[data-theme="dark"] .dashboard .job-card,
html[data-theme="dark"] .jobs-page .job-card {
    background: rgba(0, 0, 0, 0.95) !important;
    border: 1px solid rgba(51, 51, 51, 0.8) !important;
    color: #ffffff !important;
}

/* Job listing page specific styling */
html[data-theme="dark"] .jobs-page .job-card,
html[data-theme="dark"] [class*="job-card"],
html[data-theme="dark"] .card,
html[data-theme="dark"] .job-listing-card {
    background: rgba(0, 0, 0, 0.95) !important;
    border: 1px solid rgba(51, 51, 51, 0.8) !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    padding: 20px !important;
    margin-bottom: 20px !important;
}

/* Job titles in job listings */
html[data-theme="dark"] .job-card h3,
html[data-theme="dark"] .job-card h4,
html[data-theme="dark"] .job-card h5,
html[data-theme="dark"] .job-card .job-title,
html[data-theme="dark"] .job-card .title,
html[data-theme="dark"] .jobs-page .job-card h3,
html[data-theme="dark"] .jobs-page .job-card h4,
html[data-theme="dark"] .jobs-page .job-card h5,
html[data-theme="dark"] .jobs-page .job-card .job-title,
html[data-theme="dark"] .jobs-page .job-card .title {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-weight: 600 !important;
}

/* Company names in job listings */
html[data-theme="dark"] .job-card .company-name,
html[data-theme="dark"] .jobs-page .job-card .company-name {
    color: #1de5af !important;
    font-weight: 600 !important;
}

/* Job tags and details */
html[data-theme="dark"] .job-card .badge,
html[data-theme="dark"] .jobs-page .job-card .badge,
html[data-theme="dark"] .job-card [class*="badge"],
html[data-theme="dark"] .jobs-page .job-card [class*="badge"] {
    background: rgba(139, 92, 246, 0.1) !important;
    color: #8b5cf6 !important;
    border: 1px solid rgba(139, 92, 246, 0.3) !important;
}

/* Quick apply buttons */
html[data-theme="dark"] .job-card .btn,
html[data-theme="dark"] .jobs-page .job-card .btn,
html[data-theme="dark"] .quick-apply-btn {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px 20px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

html[data-theme="dark"] .job-card .btn:hover,
html[data-theme="dark"] .jobs-page .job-card .btn:hover,
html[data-theme="dark"] .quick-apply-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3) !important;
}

html[data-theme="dark"] .job-title a {
    color: #ffffff !important;
}

html[data-theme="dark"] .company-name {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .job-location {
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .view-job-btn {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%) !important;
    border-color: #8b5cf6 !important;
    color: white !important;
}

html[data-theme="dark"] .jobs-section,
html[data-theme="dark"] .categories-section,
html[data-theme="dark"] .testimonials-section {
    background: #111111 !important;
}

html[data-theme="dark"] .features-section,
html[data-theme="dark"] .locations-section {
    background: #000000 !important;
}

html[data-theme="dark"] .feature-card {
    background: rgba(0, 0, 0, 0.95) !important;
    border-color: rgba(51, 51, 51, 0.8) !important;
    color: #ffffff !important;
}

html[data-theme="dark"] .feature-icon {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%) !important;
}

html[data-theme="dark"] .category-card,
html[data-theme="dark"] .location-card {
    background: rgba(0, 0, 0, 0.95) !important;
    border-color: rgba(51, 51, 51, 0.8) !important;
    color: #ffffff !important;
    transition: all 0.3s ease !important;
}

html[data-theme="dark"] .location-card:hover {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%) !important;
    border-color: #8b5cf6 !important;
    color: #1de5af !important;
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.3) !important;
}

html[data-theme="dark"] .category-card:hover {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%) !important;
    border-color: #8b5cf6 !important;
    color: #1de5af !important;
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.3) !important;
}

html[data-theme="dark"] .cta-section {
    background: linear-gradient(135deg, #1de5af 0%, #8b5cf6 100%) !important;
}

html[data-theme="dark"] .cta-section h2 {
    color: white !important;
}

html[data-theme="dark"] .cta-section p {
    color: rgba(255, 255, 255, 0.9) !important;
}

html[data-theme="dark"] .cta-btn {
    background: white !important;
    color: #8b5cf6 !important;
}

html[data-theme="dark"] .testimonial-card {
    background: rgba(0, 0, 0, 0.95) !important;
    border-color: rgba(51, 51, 51, 0.8) !important;
    color: #ffffff !important;
}

html[data-theme="dark"] .testimonial-info h5 {
    color: #ffffff !important;
}

html[data-theme="dark"] .testimonial-info p {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .testimonial-text {
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .testimonial-avatar {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%) !important;
}

html[data-theme="dark"] .navbar {
    background: rgba(0, 0, 0, 0.95) !important;
    border-bottom: 1px solid #222222 !important;
}

html[data-theme="dark"] .navbar-nav a {
    color: #f1f5f9 !important;
}

/* Dark mode navbar login button styling */
html[data-theme="dark"] .navbar .btn-nav.btn-theme-light {
    color: #ffffff !important;
    border: 2px solid #8b5cf6 !important;
    background: transparent !important;
    box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.3) !important;
    border-radius: 8px !important;
    padding: 8px 16px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}

html[data-theme="dark"] .navbar .btn-nav.btn-theme-light:hover {
    background: rgba(139, 92, 246, 0.1) !important;
    color: #1de5af !important;
    border-color: #1de5af !important;
    box-shadow: 0 0 0 2px rgba(29, 229, 175, 0.3) !important;
    transform: translateY(-1px) !important;
}

html[data-theme="dark"] .btn-theme-light {
    color: #ffffff !important;
    border: 2px solid #8b5cf6 !important;
    background: transparent !important;
    box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.3) !important;
    border-radius: 8px !important;
    padding: 8px 16px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

html[data-theme="dark"] .btn-nav.btn-theme-light {
    color: #ffffff !important;
    border: 2px solid #8b5cf6 !important;
    background: transparent !important;
    box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.3) !important;
    border-radius: 8px !important;
    padding: 8px 16px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

html[data-theme="dark"] .btn-theme-light:hover {
    background: rgba(139, 92, 246, 0.1) !important;
    color: #1de5af !important;
    border-color: #1de5af !important;
    box-shadow: 0 0 0 2px rgba(29, 229, 175, 0.3) !important;
    transform: translateY(-1px) !important;
}

html[data-theme="dark"] .btn-nav.btn-theme-light:hover {
    background: rgba(139, 92, 246, 0.1) !important;
    color: #1de5af !important;
    border-color: #1de5af !important;
    box-shadow: 0 0 0 2px rgba(29, 229, 175, 0.3) !important;
    transform: translateY(-1px) !important;
}

html[data-theme="dark"] .btn-theme {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%) !important;
    color: white !important;
}

html[data-theme="dark"] .theme-toggle {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%) !important;
    border-color: #8b5cf6 !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3) !important;
}

/* Signup Page Dark Mode Styles */
html[data-theme="dark"] body {
    background-color: #000000 !important;
}

html[data-theme="dark"] .signup-card,
html[data-theme="dark"] .auth-card {
    background: rgba(0, 0, 0, 0.95) !important;
    border: 1px solid rgba(51, 51, 51, 0.8) !important;
    color: #ffffff !important;
}

html[data-theme="dark"] .signup-card .card-header,
html[data-theme="dark"] .auth-card .card-header,
html[data-theme="dark"] .signup-card .header-section,
html[data-theme="dark"] .auth-card .header-section {
    background: rgba(0, 0, 0, 0.95) !important;
    border-bottom: 1px solid rgba(51, 51, 51, 0.8) !important;
}

html[data-theme="dark"] .signup-card h1,
html[data-theme="dark"] .auth-card h1 {
    color: #1de5af !important;
}

html[data-theme="dark"] .signup-card h2,
html[data-theme="dark"] .auth-card h2 {
    color: #ffffff !important;
}

html[data-theme="dark"] .signup-card p,
html[data-theme="dark"] .auth-card p {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .form-control {
    background: rgba(30, 41, 59, 0.9) !important;
    border-color: #475569 !important;
    color: #ffffff !important;
}

html[data-theme="dark"] .form-control:focus {
    background: rgba(30, 41, 59, 1) !important;
    border-color: #8b5cf6 !important;
    box-shadow: 0 0 0 0.2rem rgba(139, 92, 246, 0.25) !important;
}

html[data-theme="dark"] .form-control::placeholder {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .form-label {
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .btn-outline-secondary {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%) !important;
    border-color: #8b5cf6 !important;
    color: white !important;
}

html[data-theme="dark"] .btn-outline-secondary:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #9333ea 100%) !important;
    border-color: #7c3aed !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3) !important;
}

html[data-theme="dark"] .btn-outline-secondary:disabled {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%) !important;
    border-color: #8b5cf6 !important;
    color: white !important;
    opacity: 0.6 !important;
}

html[data-theme="dark"] .btn-google {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%) !important;
    color: white !important;
    border: 1px solid #8b5cf6 !important;
}

html[data-theme="dark"] .btn-google:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #9333ea 100%) !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3) !important;
}

html[data-theme="dark"] .progress-indicator .step.active {
    background: #1de5af !important;
    border-color: #1de5af !important;
}

html[data-theme="dark"] .progress-indicator .step {
    background: #475569 !important;
    border-color: #475569 !important;
}

html[data-theme="dark"] .form-check-input {
    background-color: rgba(30, 41, 59, 0.9) !important;
    border-color: #475569 !important;
}

html[data-theme="dark"] .form-check-input:checked {
    background-color: #8b5cf6 !important;
    border-color: #8b5cf6 !important;
}

html[data-theme="dark"] .form-check-label {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .form-check-label a {
    color: #1de5af !important;
}

html[data-theme="dark"] .auth-links {
    color: #ffffff !important;
}

html[data-theme="dark"] .auth-links a {
    color: #8b5cf6 !important;
}

html[data-theme="dark"] .auth-links a:hover {
    color: #a855f7 !important;
}

/* Target the specific text more broadly */
html[data-theme="dark"] p,
html[data-theme="dark"] span,
html[data-theme="dark"] div {
    color: #ffffff !important;
}

/* Target any text that might be gray */
html[data-theme="dark"] .text-muted,
html[data-theme="dark"] .text-secondary {
    color: #ffffff !important;
}

/* Specific targeting for signup page text */
html[data-theme="dark"] .signup-card p,
html[data-theme="dark"] .auth-card p,
html[data-theme="dark"] .signup-card span,
html[data-theme="dark"] .auth-card span {
    color: #ffffff !important;
}

/* Sign In button styling */
html[data-theme="dark"] .btn-signin,
html[data-theme="dark"] .btn-login,
html[data-theme="dark"] input[type="submit"],
html[data-theme="dark"] button[type="submit"] {
    background: transparent !important;
    border: 2px solid #8b5cf6 !important;
    color: #8b5cf6 !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    display: inline-block !important;
    text-align: center !important;
    text-decoration: none !important;
}

html[data-theme="dark"] .btn-signin:hover,
html[data-theme="dark"] .btn-login:hover,
html[data-theme="dark"] input[type="submit"]:hover,
html[data-theme="dark"] button[type="submit"]:hover {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%) !important;
    border-color: #8b5cf6 !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3) !important;
}

/* When form is valid/filled, buttons turn purple */
html[data-theme="dark"] .btn-signin:not(:disabled),
html[data-theme="dark"] .btn-login:not(:disabled),
html[data-theme="dark"] input[type="submit"]:not(:disabled),
html[data-theme="dark"] button[type="submit"]:not(:disabled) {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%) !important;
    border-color: #8b5cf6 !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3) !important;
}

html[data-theme="dark"] .btn-signin:disabled,
html[data-theme="dark"] .btn-login:disabled,
html[data-theme="dark"] input[type="submit"]:disabled,
html[data-theme="dark"] button[type="submit"]:disabled {
    background: transparent !important;
    border-color: #475569 !important;
    color: #64748b !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Additional login page specific styling */
html[data-theme="dark"] .login-card,
html[data-theme="dark"] .login-form {
    background: rgba(0, 0, 0, 0.95) !important;
    border: 1px solid rgba(51, 51, 51, 0.8) !important;
}

html[data-theme="dark"] .login-card h1,
html[data-theme="dark"] .login-form h1 {
    color: #1de5af !important;
}

html[data-theme="dark"] .login-card h2,
html[data-theme="dark"] .login-form h2 {
    color: #ffffff !important;
}

html[data-theme="dark"] .login-card p,
html[data-theme="dark"] .login-form p {
    color: #cbd5e1 !important;
}

/* Target any login button specifically */
html[data-theme="dark"] .login-btn,
html[data-theme="dark"] .signin-btn,
html[data-theme="dark"] .btn-primary {
    background: transparent !important;
    border: 2px solid #8b5cf6 !important;
    color: #8b5cf6 !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    display: inline-block !important;
    text-align: center !important;
    text-decoration: none !important;
}

html[data-theme="dark"] .login-btn:hover,
html[data-theme="dark"] .signin-btn:hover,
html[data-theme="dark"] .btn-primary:hover {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%) !important;
    border-color: #8b5cf6 !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3) !important;
}

/* When form is valid/filled, login buttons turn purple */
html[data-theme="dark"] .login-btn:not(:disabled),
html[data-theme="dark"] .signin-btn:not(:disabled),
html[data-theme="dark"] .btn-primary:not(:disabled) {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%) !important;
    border-color: #8b5cf6 !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3) !important;
}

html[data-theme="dark"] .login-btn:disabled,
html[data-theme="dark"] .signin-btn:disabled,
html[data-theme="dark"] .btn-primary:disabled {
    background: transparent !important;
    border-color: #475569 !important;
    color: #64748b !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Additional dark mode overrides for signup page */
html[data-theme="dark"] .container {
    background-color: transparent !important;
}

html[data-theme="dark"] .row {
    background-color: transparent !important;
}

html[data-theme="dark"] .col,
html[data-theme="dark"] .col-md-6,
html[data-theme="dark"] .col-lg-6 {
    background-color: transparent !important;
}

html[data-theme="dark"] .card {
    background: rgba(0, 0, 0, 0.95) !important;
    border: 1px solid rgba(51, 51, 51, 0.8) !important;
}

html[data-theme="dark"] .card-body {
    background: rgba(0, 0, 0, 0.95) !important;
}

html[data-theme="dark"] .card-header {
    background: rgba(0, 0, 0, 0.95) !important;
    border-bottom: 1px solid rgba(51, 51, 51, 0.8) !important;
}

/* Force all backgrounds to be dark */
html[data-theme="dark"] * {
    background-color: transparent !important;
}

html[data-theme="dark"] body,
html[data-theme="dark"] html {
    background-color: #000000 !important;
}

html[data-theme="dark"] .signup-card,
html[data-theme="dark"] .auth-card,
html[data-theme="dark"] .card,
html[data-theme="dark"] .form-card {
    background: rgba(0, 0, 0, 0.95) !important;
}

/* Target specific signup page elements */
html[data-theme="dark"] .signup-container,
html[data-theme="dark"] .auth-container {
    background-color: #000000 !important;
}

html[data-theme="dark"] .signup-wrapper,
html[data-theme="dark"] .auth-wrapper {
    background-color: #000000 !important;
}

/* Target any div that might have white background */
html[data-theme="dark"] div[class*="signup"],
html[data-theme="dark"] div[class*="auth"],
html[data-theme="dark"] div[class*="form"] {
    background-color: transparent !important;
}

html[data-theme="dark"] div[class*="signup"] .card,
html[data-theme="dark"] div[class*="auth"] .card,
html[data-theme="dark"] div[class*="form"] .card {
    background: rgba(0, 0, 0, 0.95) !important;
}

/* Override any inline styles */
html[data-theme="dark"] [style*="background"] {
    background-color: transparent !important;
    background: transparent !important;
}

html[data-theme="dark"] [style*="background-color"] {
    background-color: transparent !important;
    background: transparent !important;
}

/* Force specific elements */
html[data-theme="dark"] .main-content,
html[data-theme="dark"] .content-wrapper,
html[data-theme="dark"] .page-wrapper {
    background-color: #000000 !important;
}

/* Dashboard Dark Mode Styles */
html[data-theme="dark"] .dashboard {
    background-color: #000000 !important;
}

html[data-theme="dark"] .sidebar {
    background: rgba(0, 0, 0, 0.95) !important;
    border-right: 1px solid rgba(51, 51, 51, 0.8) !important;
}

html[data-theme="dark"] .sidebar-nav .nav-link {
    color: #ffffff !important;
    border-radius: 8px !important;
    margin: 2px 0 !important;
    padding: 12px 16px !important;
    transition: all 0.3s ease !important;
}

html[data-theme="dark"] .sidebar-nav .nav-link:hover {
    background: rgba(29, 229, 175, 0.1) !important;
    color: #1de5af !important;
}

html[data-theme="dark"] .sidebar-nav .nav-link.active {
    background: rgba(29, 229, 175, 0.2) !important;
    color: #1de5af !important;
    border: 1px solid rgba(29, 229, 175, 0.3) !important;
}

/* More aggressive targeting for sidebar active states */
html[data-theme="dark"] .sidebar .nav-link.active,
html[data-theme="dark"] .sidebar .nav-item.active .nav-link,
html[data-theme="dark"] .sidebar .active,
html[data-theme="dark"] .sidebar [class*="active"] {
    background: rgba(29, 229, 175, 0.2) !important;
    color: #1de5af !important;
    border: 1px solid rgba(29, 229, 175, 0.3) !important;
}

/* Target any sidebar text that might be grey */
html[data-theme="dark"] .sidebar .text-muted,
html[data-theme="dark"] .sidebar .text-secondary,
html[data-theme="dark"] .sidebar [class*="text-"] {
    color: #ffffff !important;
}

html[data-theme="dark"] .sidebar .active .text-muted,
html[data-theme="dark"] .sidebar .active .text-secondary,
html[data-theme="dark"] .sidebar .active [class*="text-"] {
    color: #1de5af !important;
}

/* Target the actual sidebar structure being used */
html[data-theme="dark"] .sidebar-menu ul li a {
    color: #ffffff !important;
    transition: all 0.3s ease !important;
}

html[data-theme="dark"] .sidebar-menu ul li a:hover {
    background: rgba(139, 92, 246, 0.1) !important;
    color: #8b5cf6 !important;
}

html[data-theme="dark"] .sidebar-menu ul li.active a {
    background: rgba(139, 92, 246, 0.2) !important;
    color: #8b5cf6 !important;
    border: 1px solid rgba(139, 92, 246, 0.3) !important;
    border-radius: 8px !important;
}

/* Force override any existing active styles */
html[data-theme="dark"] .sidebar-menu ul li.active,
html[data-theme="dark"] .sidebar-menu ul li.active * {
    color: #8b5cf6 !important;
    -webkit-text-fill-color: #8b5cf6 !important;
}

/* Remove any duplicate borders and ensure single clean border */
html[data-theme="dark"] .sidebar-menu ul li.active a {
    background: rgba(29, 229, 175, 0.2) !important;
    color: #1de5af !important;
    border: 1px solid rgba(29, 229, 175, 0.3) !important;
    border-radius: 8px !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Remove any conflicting border styles */
html[data-theme="dark"] .sidebar-menu ul li.active {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* Override any existing background styles that might be green */
html[data-theme="dark"] .sidebar-menu ul li.active,
html[data-theme="dark"] .sidebar-menu ul li.active * {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Allow purple background for active links */
html[data-theme="dark"] .sidebar-menu ul li.active a {
    background: rgba(139, 92, 246, 0.2) !important;
    background-color: rgba(139, 92, 246, 0.2) !important;
    border: 1px solid rgba(139, 92, 246, 0.3) !important;
    border-radius: 8px !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Override any existing border styles */
html[data-theme="dark"] .sidebar-menu ul li a {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .sidebar-menu ul li a:hover {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .main-content {
    background-color: #000000 !important;
}

html[data-theme="dark"] .welcome-banner {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%) !important;
    border-radius: 12px !important;
    padding: 24px !important;
}

html[data-theme="dark"] .welcome-banner h2 {
    color: white !important;
}

html[data-theme="dark"] .welcome-banner p {
    color: rgba(255, 255, 255, 0.9) !important;
}

html[data-theme="dark"] .stats-card {
    background: rgba(0, 0, 0, 0.95) !important;
    border: 1px solid rgba(51, 51, 51, 0.8) !important;
    border-radius: 12px !important;
    padding: 20px !important;
}

html[data-theme="dark"] .stats-number {
    color: #1de5af !important;
    font-size: 24px !important;
    font-weight: 700 !important;
}

html[data-theme="dark"] .stats-label {
    color: #cbd5e1 !important;
    font-size: 14px !important;
}

html[data-theme="dark"] .btn-quick-apply,
html[data-theme="dark"] .btn-update-profile {
    background: transparent !important;
    border: 2px solid white !important;
    color: white !important;
    border-radius: 8px !important;
    padding: 8px 16px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

html[data-theme="dark"] .btn-quick-apply:hover,
html[data-theme="dark"] .btn-update-profile:hover {
    background: white !important;
    color: #1de5af !important;
    transform: translateY(-2px) !important;
}

html[data-theme="dark"] .job-card {
    background: rgba(0, 0, 0, 0.95) !important;
    border: 1px solid rgba(51, 51, 51, 0.8) !important;
    border-radius: 12px !important;
    padding: 20px !important;
    transition: all 0.3s ease !important;
}

html[data-theme="dark"] .job-card:hover {
    border-color: #8b5cf6 !important;
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 30px rgba(139, 92, 246, 0.2) !important;
}

/* Company logo styling - match light mode exactly (job view page only) */
html[data-theme="dark"] .job-view-page .company-logo,
html[data-theme="dark"] .job-details-page .company-logo,
html[data-theme="dark"] .modern-job-detail .company-logo {
    background: white !important;
    border-radius: 8px !important;
    padding: 8px !important;
    width: 60px !important;
    height: 60px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 12px !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

/* Job view specific logo styling - match light mode exactly */
html[data-theme="dark"] .modern-job-detail .company-logo-wrapper,
html[data-theme="dark"] .job-view-page .company-logo-wrapper,
html[data-theme="dark"] .job-details-page .company-logo-wrapper {
    width: 110px !important;
    height: 80px !important;
    background: white !important;
    border-radius: 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    border: 2px solid #f1f5f9 !important;
}

/* Removed conflicting company logo styles */

/* Removed conflicting company logo image styles */

/* Job view page buttons - match light mode exactly */
html[data-theme="dark"] .job-view-page .btn,
html[data-theme="dark"] .job-details-page .btn,
html[data-theme="dark"] .apply-company-btn,
html[data-theme="dark"] .one-click-apply-btn,
html[data-theme="dark"] .back-to-jobs-btn {
    background: white !important;
    color: #0066cc !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 12px 24px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

html[data-theme="dark"] .job-view-page .btn:hover,
html[data-theme="dark"] .job-details-page .btn:hover,
html[data-theme="dark"] .apply-company-btn:hover,
html[data-theme="dark"] .one-click-apply-btn:hover,
html[data-theme="dark"] .back-to-jobs-btn:hover {
    background: #f8f9fa !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* Share and bookmark buttons - match light mode */
html[data-theme="dark"] .share-btn,
html[data-theme="dark"] .bookmark-btn {
    background: white !important;
    color: #0066cc !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
}

html[data-theme="dark"] .share-btn:hover,
html[data-theme="dark"] .bookmark-btn:hover {
    background: #f8f9fa !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

html[data-theme="dark"] .modern-job-detail .company-logo img,
html[data-theme="dark"] .job-view-page .company-logo img,
html[data-theme="dark"] .job-details-page .company-logo img,
html[data-theme="dark"] .modern-job-detail .job-logo img,
html[data-theme="dark"] .job-view-page .job-logo img,
html[data-theme="dark"] .job-details-page .job-logo img {
    max-width: 44px !important;
    max-height: 44px !important;
    width: 44px !important;
    height: 44px !important;
    object-fit: contain !important;
}

html[data-theme="dark"] .job-company {
    color: #1de5af !important;
    font-weight: 600 !important;
}

html[data-theme="dark"] .job-location {
    color: #ffffff !important;
}

html[data-theme="dark"] .job-time {
    color: #ffffff !important;
    font-size: 12px !important;
}

/* Additional job card text styling */
html[data-theme="dark"] .job-card h4,
html[data-theme="dark"] .job-card h5,
html[data-theme="dark"] .job-card h6 {
    color: #ffffff !important;
}

/* Job View Page Dark Mode Styling */
html[data-theme="dark"] .job-view-page,
html[data-theme="dark"] .job-details-page,
html[data-theme="dark"] .modern-job-detail {
    background: #000000 !important;
    color: #ffffff !important;
}

/* Job header banner - keep blue gradient */
html[data-theme="dark"] .job-header-section {
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%) !important;
    color: #ffffff !important;
}

/* Back to jobs button */
html[data-theme="dark"] .back-to-jobs-btn {
    background: transparent !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

html[data-theme="dark"] .back-to-jobs-btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

/* Job title and company name */
html[data-theme="dark"] .job-title {
    color: #ffffff !important;
}

html[data-theme="dark"] .company-name {
    color: #1de5af !important;
}

/* Job overview cards */
html[data-theme="dark"] .job-overview-card,
html[data-theme="dark"] .highlight-card,
html[data-theme="dark"] .modern-job-detail .highlight-card,
html[data-theme="dark"] .job-view-page .highlight-card,
html[data-theme="dark"] .job-details-page .highlight-card {
    background: #1a1a1a !important;
    border: 1px solid #333333 !important;
    color: #ffffff !important;
}

html[data-theme="dark"] .job-overview-card h4,
html[data-theme="dark"] .highlight-card h4,
html[data-theme="dark"] .modern-job-detail .highlight-card h4,
html[data-theme="dark"] .job-view-page .highlight-card h4,
html[data-theme="dark"] .job-details-page .highlight-card h4 {
    color: #1de5af !important;
}

html[data-theme="dark"] .job-overview-card p,
html[data-theme="dark"] .highlight-card p,
html[data-theme="dark"] .modern-job-detail .highlight-card p,
html[data-theme="dark"] .job-view-page .highlight-card p,
html[data-theme="dark"] .job-details-page .highlight-card p {
    color: #ffffff !important;
}

html[data-theme="dark"] .highlight-icon,
html[data-theme="dark"] .modern-job-detail .highlight-icon,
html[data-theme="dark"] .job-view-page .highlight-icon,
html[data-theme="dark"] .job-details-page .highlight-icon {
    color: #1de5af !important;
}

/* Override the inline styles in the component */
html[data-theme="dark"] .highlight-card[style*="background"],
html[data-theme="dark"] .highlight-card[style*="white"] {
    background: #1a1a1a !important;
}

/* Job description section */
html[data-theme="dark"] .job-description-section,
html[data-theme="dark"] .modern-job-detail .job-description-section,
html[data-theme="dark"] .job-view-page .job-description-section,
html[data-theme="dark"] .job-details-page .job-description-section {
    background: #1a1a1a !important;
    border: 1px solid #333333 !important;
    color: #ffffff !important;
}

html[data-theme="dark"] .job-description-section h2,
html[data-theme="dark"] .job-description-section h3,
html[data-theme="dark"] .job-description-section h4,
html[data-theme="dark"] .modern-job-detail .job-description-section h2,
html[data-theme="dark"] .modern-job-detail .job-description-section h3,
html[data-theme="dark"] .modern-job-detail .job-description-section h4,
html[data-theme="dark"] .job-view-page .job-description-section h2,
html[data-theme="dark"] .job-view-page .job-description-section h3,
html[data-theme="dark"] .job-view-page .job-description-section h4,
html[data-theme="dark"] .job-details-page .job-description-section h2,
html[data-theme="dark"] .job-details-page .job-description-section h3,
html[data-theme="dark"] .job-details-page .job-description-section h4 {
    color: #ffffff !important;
}

html[data-theme="dark"] .job-description-section p,
html[data-theme="dark"] .job-description-section li,
html[data-theme="dark"] .modern-job-detail .job-description-section p,
html[data-theme="dark"] .modern-job-detail .job-description-section li,
html[data-theme="dark"] .job-view-page .job-description-section p,
html[data-theme="dark"] .job-view-page .job-description-section li,
html[data-theme="dark"] .job-details-page .job-description-section p,
html[data-theme="dark"] .job-details-page .job-description-section li {
    color: #e5e5e5 !important;
}

/* Override any inline styles */
html[data-theme="dark"] .job-description-section[style*="background"],
html[data-theme="dark"] .job-description-section[style*="white"] {
    background: #1a1a1a !important;
}

/* Job highlights section */
html[data-theme="dark"] .job-highlights-section {
    background: transparent !important;
}

html[data-theme="dark"] .highlights-grid {
    background: transparent !important;
}

/* Location info and post time */
html[data-theme="dark"] .location-info {
    color: #e5e5e5 !important;
}

html[data-theme="dark"] .post-time {
    color: #e5e5e5 !important;
}

/* Job meta information */
html[data-theme="dark"] .job-meta {
    color: #e5e5e5 !important;
}

/* Any remaining white backgrounds */
html[data-theme="dark"] .job-view-page .card,
html[data-theme="dark"] .job-details-page .card,
html[data-theme="dark"] .modern-job-detail .card {
    background: #1a1a1a !important;
    border: 1px solid #333333 !important;
    color: #ffffff !important;
}

html[data-theme="dark"] .job-card p,
html[data-theme="dark"] .job-card span,
html[data-theme="dark"] .job-card div {
    color: #ffffff !important;
}

html[data-theme="dark"] .job-title {
    color: #ffffff !important;
    font-weight: 600 !important;
}

html[data-theme="dark"] .job-description {
    color: #ffffff !important;
}

/* Force all job title elements to be white */
html[data-theme="dark"] .job-card .job-title,
html[data-theme="dark"] .job-card h3,
html[data-theme="dark"] .job-card h4,
html[data-theme="dark"] .job-card h5,
html[data-theme="dark"] .job-card h6,
html[data-theme="dark"] .job-card .title,
html[data-theme="dark"] .job-card .name {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* Target any element that might contain job titles */
html[data-theme="dark"] .job-card * {
    color: #ffffff !important;
}

/* Override any inline styles for job titles */
html[data-theme="dark"] .job-card [style*="color"] {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* Specific targeting for dashboard job cards */
html[data-theme="dark"] .dashboard .job-card .job-title,
html[data-theme="dark"] .dashboard .job-card h3,
html[data-theme="dark"] .dashboard .job-card h4,
html[data-theme="dark"] .dashboard .job-card h5,
html[data-theme="dark"] .dashboard .job-card h6 {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* Force all text in job cards to be white in dark mode */
html[data-theme="dark"] .job-card,
html[data-theme="dark"] .job-card *,
html[data-theme="dark"] .dashboard .job-card,
html[data-theme="dark"] .dashboard .job-card * {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* Override any specific text colors */
html[data-theme="dark"] .job-card .text-dark,
html[data-theme="dark"] .job-card .text-black,
html[data-theme="dark"] .dashboard .job-card .text-dark,
html[data-theme="dark"] .dashboard .job-card .text-black {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* Target any element that might be the job title */
html[data-theme="dark"] .job-card strong,
html[data-theme="dark"] .job-card b,
html[data-theme="dark"] .job-card .fw-bold,
html[data-theme="dark"] .dashboard .job-card strong,
html[data-theme="dark"] .dashboard .job-card b,
html[data-theme="dark"] .dashboard .job-card .fw-bold {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* Target all possible job title classes found in the codebase */
html[data-theme="dark"] .job-title,
html[data-theme="dark"] .job-title-modern,
html[data-theme="dark"] .job-title-mini,
html[data-theme="dark"] .job-title-section h1,
html[data-theme="dark"] .job-title-section h3,
html[data-theme="dark"] .job-title-section h4,
html[data-theme="dark"] .dashboard .job-title,
html[data-theme="dark"] .dashboard .job-title-modern,
html[data-theme="dark"] .dashboard .job-title-mini,
html[data-theme="dark"] .dashboard .job-title-section h1,
html[data-theme="dark"] .dashboard .job-title-section h3,
html[data-theme="dark"] .dashboard .job-title-section h4 {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* Target any link that might contain job titles */
html[data-theme="dark"] .job-card a,
html[data-theme="dark"] .dashboard .job-card a {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* Target any text that might be a job title */
html[data-theme="dark"] .job-card .text-black,
html[data-theme="dark"] .dashboard .job-card .text-black {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* My Jobs page company logos only - exclude Sivee logo */
html[data-theme="dark"] .my-jobs-l .content-box-dashboard img[src*="logo"],
html[data-theme="dark"] .dashboard .content-box-dashboard img[src*="logo"],
html[data-theme="dark"] .my-jobs-l .job-listing-box img[src*="logo"],
html[data-theme="dark"] .dashboard .job-listing-box img[src*="logo"] {
    background: white !important;
    border-radius: 8px !important;
    padding: 8px !important;
    width: 60px !important;
    height: 60px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    object-fit: contain !important;
}

/* My Jobs page buttons - make them purple */
html[data-theme="dark"] .my-jobs-l .btn,
html[data-theme="dark"] .dashboard .btn,
html[data-theme="dark"] .btn-outline-secondary,
html[data-theme="dark"] .btn-theme-light {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px 20px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

html[data-theme="dark"] .my-jobs-l .btn:hover,
html[data-theme="dark"] .dashboard .btn:hover,
html[data-theme="dark"] .btn-outline-secondary:hover,
html[data-theme="dark"] .btn-theme-light:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3) !important;
}

/* Search bar styling for dark mode */
html[data-theme="dark"] input[type="search"],
html[data-theme="dark"] input[type="text"],
html[data-theme="dark"] .form-control,
html[data-theme="dark"] .search-input,
html[data-theme="dark"] .my-jobs-l input,
html[data-theme="dark"] .dashboard input {
    background: #000000 !important;
    border: 1px solid #333333 !important;
    color: #ffffff !important;
}

html[data-theme="dark"] input[type="search"]::placeholder,
html[data-theme="dark"] input[type="text"]::placeholder,
html[data-theme="dark"] .form-control::placeholder,
html[data-theme="dark"] .search-input::placeholder,
html[data-theme="dark"] .my-jobs-l input::placeholder,
html[data-theme="dark"] .dashboard input::placeholder {
    color: #cccccc !important;
}

/* Override specific search bar classes */
html[data-theme="dark"] .input-group.bg-white,
html[data-theme="dark"] .input-group-text.bg-white,
html[data-theme="dark"] .form-control.bg-white {
    background: #000000 !important;
    border-color: #333333 !important;
}

html[data-theme="dark"] .input-group-text {
    background: #000000 !important;
    border-color: #333333 !important;
    color: #ffffff !important;
}

html[data-theme="dark"] .input-group-text i {
    color: #cccccc !important;
}

/* Remove outer sidebar border in dark mode */
html[data-theme="dark"] .w-20 {
    border: none !important;
}

/* Add box-shadow to sidebar to match light mode outline */
html[data-theme="dark"] .sidebar {
    box-shadow: rgba(255, 255, 255, 0.15) 0 6px 24px 0, rgba(255, 255, 255, 0.1) 0 0 0 1px !important;
}

/* Complete the sidebar outline around the bottom */
html[data-theme="dark"] .user-info-dashboard {
    border-top: 1px solid #444444 !important;
}

/* Bottom section outline in sidebar */
html[data-theme="dark"] .sidebar-bottom,
html[data-theme="dark"] .user-profile-section,
html[data-theme="dark"] .sidebar .user-info {
    border-top: 2px solid #666666 !important;
    padding-top: 15px !important;
    margin-top: 15px !important;
}

/* Index page job card logos - remove white boxes */
html[data-theme="dark"] .job-card .company-logo,
html[data-theme="dark"] .index-page .company-logo,
html[data-theme="dark"] .popular-jobs .company-logo {
    background: transparent !important;
    border-radius: 0 !important;
    padding: 0 !important;
    width: auto !important;
    height: auto !important;
    display: inline !important;
    align-items: unset !important;
    justify-content: unset !important;
    border: none !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .job-card .company-logo img,
html[data-theme="dark"] .index-page .company-logo img,
html[data-theme="dark"] .popular-jobs .company-logo img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}

/* Remove white background from AI job card logos */
html[data-theme="dark"] .ai-company-logo {
    background: transparent !important;
    border-radius: 0 !important;
    padding: 0 !important;
    width: auto !important;
    height: auto !important;
    display: inline !important;
    border: none !important;
    box-shadow: none !important;
}

/* Override inline styles for AI job card logos */
html[data-theme="dark"] .ai-job-card .ai-company-logo,
html[data-theme="dark"] .company-logo-section .ai-company-logo,
html[data-theme="dark"] .ai-recommendations .ai-company-logo {
    background: transparent !important;
    border-radius: 0 !important;
    padding: 0 !important;
    width: auto !important;
    height: auto !important;
    display: inline !important;
    border: none !important;
    box-shadow: none !important;
}

/* Keep outer outline but remove inner grey outlines from AI job cards */
html[data-theme="dark"] .ai-job-card {
    border: 1px solid rgba(51, 51, 51, 0.8) !important;
    box-shadow: none !important;
}

/* Remove inner grey outlines from job card sections */
html[data-theme="dark"] .ai-job-card .job-card-footer {
    border-top: none !important;
}

/* Remove all inner borders and dividers from AI job cards */
html[data-theme="dark"] .ai-job-card * {
    border-top: none !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
}

/* Keep only the outer border on the main card */
html[data-theme="dark"] .ai-job-card {
    border: 1px solid rgba(51, 51, 51, 0.8) !important;
    box-shadow: none !important;
}

/* Add divider between salary and footer section */
html[data-theme="dark"] .ai-job-card .job-card-footer {
    border-top: 1px solid rgba(51, 51, 51, 0.5) !important;
    padding-top: 15px !important;
}

/* Remove inner outlines from job listing cards */
html[data-theme="dark"] .job-listing-card *,
html[data-theme="dark"] .job-card *,
html[data-theme="dark"] .modern-job-card * {
    border-top: none !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
}

/* Keep only outer border on job listing cards */
html[data-theme="dark"] .job-listing-card,
html[data-theme="dark"] .job-card,
html[data-theme="dark"] .modern-job-card {
    border: 1px solid rgba(51, 51, 51, 0.8) !important;
    box-shadow: none !important;
}

/* Specifically remove borders from job action sections */
html[data-theme="dark"] .job-actions-section,
html[data-theme="dark"] .job-tags-section {
    border-top: none !important;
    border-bottom: none !important;
}

/* Fix tag button text visibility in dark mode */
html[data-theme="dark"] .job-tag,
html[data-theme="dark"] .experience-tag,
html[data-theme="dark"] .type-tag,
html[data-theme="dark"] .salary-tag,
html[data-theme="dark"] .category-tag {
    color: #000000 !important;
    font-weight: 600 !important;
    text-shadow: none !important;
}

/* More aggressive targeting for tag buttons */
html[data-theme="dark"] .job-tags-section .job-tag,
html[data-theme="dark"] .job-tags-section .experience-tag,
html[data-theme="dark"] .job-tags-section .type-tag,
html[data-theme="dark"] .job-tags-section .salary-tag,
html[data-theme="dark"] .job-tags-section .category-tag,
html[data-theme="dark"] .modern-job-card .job-tag,
html[data-theme="dark"] .modern-job-card .experience-tag,
html[data-theme="dark"] .modern-job-card .type-tag,
html[data-theme="dark"] .modern-job-card .salary-tag,
html[data-theme="dark"] .modern-job-card .category-tag {
    color: #000000 !important;
    font-weight: 700 !important;
    text-shadow: none !important;
    -webkit-text-fill-color: #000000 !important;
}

/* Fix icon colors in tag buttons */
html[data-theme="dark"] .job-tags-section .job-tag i,
html[data-theme="dark"] .job-tags-section .experience-tag i,
html[data-theme="dark"] .job-tags-section .type-tag i,
html[data-theme="dark"] .job-tags-section .salary-tag i,
html[data-theme="dark"] .job-tags-section .category-tag i,
html[data-theme="dark"] .modern-job-card .job-tag i,
html[data-theme="dark"] .modern-job-card .experience-tag i,
html[data-theme="dark"] .modern-job-card .type-tag i,
html[data-theme="dark"] .modern-job-card .salary-tag i,
html[data-theme="dark"] .modern-job-card .category-tag i {
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
}

/* Add purple outline to Company Site button */
html[data-theme="dark"] .btn-modern.btn-secondary {
    border: 2px solid #8b5cf6 !important;
    background: transparent !important;
    color: #ffffff !important;
}

html[data-theme="dark"] .btn-view-job {
    background: linear-gradient(135deg, #1de5af 0%, #00d4a0 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 8px 16px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

html[data-theme="dark"] .btn-view-job:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(29, 229, 175, 0.3) !important;
}

html[data-theme="dark"] .toggle-switch {
    background: #475569 !important;
    border-radius: 20px !important;
    position: relative !important;
    width: 50px !important;
    height: 24px !important;
    transition: all 0.3s ease !important;
}

html[data-theme="dark"] .toggle-switch.active {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%) !important;
}

html[data-theme="dark"] .toggle-switch::before {
    background: white !important;
    border-radius: 50% !important;
    width: 18px !important;
    height: 18px !important;
    transition: all 0.3s ease !important;
}

html[data-theme="dark"] .skill-tag {
    background: rgba(139, 92, 246, 0.1) !important;
    border: 1px solid rgba(139, 92, 246, 0.3) !important;
    color: #8b5cf6 !important;
    border-radius: 20px !important;
    padding: 6px 12px !important;
    font-size: 12px !important;
    transition: all 0.3s ease !important;
}

html[data-theme="dark"] .skill-tag:hover {
    background: rgba(139, 92, 246, 0.2) !important;
    border-color: #8b5cf6 !important;
}

html[data-theme="dark"] .cv-item,
html[data-theme="dark"] .cover-letter-item {
    background: rgba(0, 0, 0, 0.95) !important;
    border: 1px solid rgba(51, 51, 51, 0.8) !important;
    border-radius: 8px !important;
    padding: 16px !important;
    transition: all 0.3s ease !important;
}

html[data-theme="dark"] .cv-item:hover,
html[data-theme="dark"] .cover-letter-item:hover {
    border-color: #8b5cf6 !important;
    transform: translateY(-2px) !important;
}

html[data-theme="dark"] .cv-name,
html[data-theme="dark"] .cover-letter-name {
    color: #1de5af !important;
    font-weight: 600 !important;
}

html[data-theme="dark"] .cv-date,
html[data-theme="dark"] .cover-letter-date {
    color: #94a3b8 !important;
    font-size: 12px !important;
}

html[data-theme="dark"] .section-title {
    color: white !important;
    font-weight: 600 !important;
    margin-bottom: 16px !important;
}

/* Section outlines and containers */
html[data-theme="dark"] .dashboard-section,
html[data-theme="dark"] .section-container {
    background: rgba(0, 0, 0, 0.95) !important;
    border: 1px solid rgba(51, 51, 51, 0.8) !important;
    border-radius: 12px !important;
    padding: 24px !important;
    margin-bottom: 24px !important;
    transition: all 0.3s ease !important;
}

html[data-theme="dark"] .dashboard-section:hover,
html[data-theme="dark"] .section-container:hover {
    border-color: rgba(139, 92, 246, 0.3) !important;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.1) !important;
}

/* Remove old section styling that's not being used */

/* Target the main dashboard content boxes */
html[data-theme="dark"] .content-box-dashboard {
    border: 2px solid #6b7280 !important;
    border-radius: 12px !important;
    padding: 24px !important;
    margin-bottom: 20px !important;
    background: rgba(0, 0, 0, 0.95) !important;
    transition: all 0.3s ease !important;
}

html[data-theme="dark"] .content-box-dashboard:hover {
    border-color: #6f42c1 !important;
    box-shadow: 0 4px 20px rgba(111, 66, 193, 0.2) !important;
}

/* Force all text in dashboard to be white */
html[data-theme="dark"] .dashboard *,
html[data-theme="dark"] .dashboard h1,
html[data-theme="dark"] .dashboard h2,
html[data-theme="dark"] .dashboard h3,
html[data-theme="dark"] .dashboard h4,
html[data-theme="dark"] .dashboard h5,
html[data-theme="dark"] .dashboard h6,
html[data-theme="dark"] .dashboard p,
html[data-theme="dark"] .dashboard span,
html[data-theme="dark"] .dashboard div,
html[data-theme="dark"] .dashboard a {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* Override any Bootstrap text classes in dashboard */
html[data-theme="dark"] .dashboard .text-dark,
html[data-theme="dark"] .dashboard .text-black,
html[data-theme="dark"] .dashboard .text-muted,
html[data-theme="dark"] .dashboard .text-secondary {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* Section headers */
html[data-theme="dark"] .section-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 20px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid rgba(51, 51, 51, 0.5) !important;
}

html[data-theme="dark"] .section-header h3 {
    color: white !important;
    font-weight: 600 !important;
    margin: 0 !important;
}

html[data-theme="dark"] .btn-view-all,
html[data-theme="dark"] .btn-edit {
    background: transparent !important;
    border: 1px solid #8b5cf6 !important;
    color: #8b5cf6 !important;
    border-radius: 6px !important;
    padding: 6px 12px !important;
    font-size: 12px !important;
    transition: all 0.3s ease !important;
}

html[data-theme="dark"] .btn-view-all:hover,
html[data-theme="dark"] .btn-edit:hover {
    background: #8b5cf6 !important;
    color: white !important;
}

html[data-theme="dark"] .user-profile {
    background: rgba(0, 0, 0, 0.95) !important;
    border-top: 1px solid rgba(51, 51, 51, 0.8) !important;
    padding: 16px !important;
}

html[data-theme="dark"] .user-avatar {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%) !important;
    color: white !important;
    border-radius: 8px !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 600 !important;
}

html[data-theme="dark"] .user-name {
    color: white !important;
    font-weight: 600 !important;
}

html[data-theme="dark"] .logout-btn {
    color: #cbd5e1 !important;
    transition: all 0.3s ease !important;
}

html[data-theme="dark"] .logout-btn:hover {
    color: #ef4444 !important;
}

/* Smooth transitions */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Line divider styling for dark mode */
html[data-theme="dark"] .line-divider {
    background: #6b7280 !important;
    height: 1px;
    opacity: 0.8;
}

/* View toggle buttons styling for dark mode */
html[data-theme="dark"] .view-toggle-btn {
    background: #000000 !important;
    border: 1px solid #ffffff !important;
    color: #ffffff !important;
    transition: all 0.3s ease !important;
}

html[data-theme="dark"] .view-toggle-btn.active,
html[data-theme="dark"] .view-toggle-btn.selected {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%) !important;
    border-color: #8b5cf6 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3) !important;
}

/* Dark mode mobile menu styling */
html[data-theme="dark"] .frontend-mobile-menu .modal-content {
    background: rgba(0, 0, 0, 0.95) !important;
    border: 1px solid rgba(51, 51, 51, 0.8) !important;
    color: #ffffff !important;
}

html[data-theme="dark"] .frontend-mobile-menu .modal-body {
    background: rgba(0, 0, 0, 0.95) !important;
    color: #ffffff !important;
}

html[data-theme="dark"] .frontend-mobile-menu .btn-close {
    filter: invert(1) !important;
    color: #ffffff !important;
}

html[data-theme="dark"] .frontend-mobile-menu .navbar-nav .nav-link {
    color: #ffffff !important;
    border-bottom: 1px solid rgba(51, 51, 51, 0.8) !important;
    padding: 1rem 0 !important;
    transition: all 0.3s ease !important;
}

html[data-theme="dark"] .frontend-mobile-menu .navbar-nav .nav-link:hover {
    color: #1de5af !important;
    background: rgba(29, 229, 175, 0.1) !important;
}

html[data-theme="dark"] .frontend-mobile-menu .logo-frontend {
    filter: brightness(0) invert(1) !important;
}

/* NUCLEAR OPTION - Force dark mode toggle to bottom-right with maximum specificity */
body .theme-toggle,
html .theme-toggle,
.theme-toggle,
div .theme-toggle,
* .theme-toggle,
.theme-toggle[style],
.theme-toggle[class] {
    position: fixed !important;
    top: auto !important;
    bottom: 20px !important;
    right: 20px !important;
    left: auto !important;
    transform: none !important;
    inset: auto auto 20px 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    clear: none !important;
    text-align: right !important;
    z-index: 9999 !important;
    /* Override any conflicting CSS with maximum specificity */
    position: fixed !important;
    right: 20px !important;
    left: auto !important;
    bottom: 20px !important;
    top: auto !important;
}

/* Mobile-specific nuclear override */
@media (max-width: 768px) {
    body .theme-toggle,
    html .theme-toggle,
    .theme-toggle,
    div .theme-toggle,
    * .theme-toggle,
    .theme-toggle[style],
    .theme-toggle[class] {
        position: fixed !important;
        top: auto !important;
        bottom: 20px !important;
        right: 20px !important;
        left: auto !important;
        transform: none !important;
        inset: auto auto 20px 20px !important;
        margin: 0 !important;
        padding: 0 !important;
        float: none !important;
        clear: none !important;
        text-align: right !important;
        z-index: 9999 !important;
        /* Force bottom-right positioning */
        position: fixed !important;
        right: 20px !important;
        left: auto !important;
        bottom: 20px !important;
        top: auto !important;
    }
}

