/* =====================================================
   LIYU JOBS - Custom Styles
   Ethiopian Theme: Emerald Green + Ethiopian Gold
   ===================================================== */

/* CSS Variables */
:root {
    --ethiopian-green: #1B5E20;
    --ethiopian-green-light: #2E7D32;
    --ethiopian-green-dark: #0D3B0F;
    --ethiopian-gold: #D4A843;
    --ethiopian-gold-light: #E8C468;
    --ethiopian-gold-dark: #B8922E;
}

/* Base Styles */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Custom Scrollbar for Cards */
.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

/* Navigation */
.nav-link {
    position: relative;
    padding-bottom: 2px;
}

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

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

/* Hero Section */
.hero-gradient {
    background: linear-gradient(135deg, var(--ethiopian-green-dark) 0%, var(--ethiopian-green) 50%, var(--ethiopian-green-light) 100%);
    position: relative;
    overflow: hidden;
}

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

/* Public Site System */
.public-page {
    background:
        radial-gradient(circle at top left, rgba(27, 94, 32, 0.07), transparent 30rem),
        linear-gradient(180deg, #f8fafc 0%, #f9fafb 42%, #ffffff 100%);
}

.public-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.public-hero {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(13, 59, 15, 0.97), rgba(27, 94, 32, 0.94)),
        linear-gradient(90deg, rgba(212, 168, 67, 0.16), transparent);
    color: #fff;
}

.public-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.055) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,.8), transparent 75%);
}

.search-panel {
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 0.5rem;
    box-shadow: 0 24px 70px -44px rgba(15, 23, 42, 0.8);
}

.section-kicker {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ethiopian-green);
}

.soft-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 16px 42px -34px rgba(15, 23, 42, 0.45);
}

.job-list-card {
    display: block;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.job-list-card:hover {
    border-color: rgba(27, 94, 32, 0.45);
    box-shadow: 0 18px 40px -32px rgba(15, 23, 42, 0.7);
    transform: translateY(-1px);
}

.company-list-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.25rem;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.company-list-card:hover {
    border-color: rgba(27, 94, 32, 0.45);
    box-shadow: 0 18px 40px -32px rgba(15, 23, 42, 0.7);
    transform: translateY(-1px);
}

.logo-tile {
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    background: #f3f4f6;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    font-weight: 800;
}

.info-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 9999px;
    padding: 0.25rem 0.625rem;
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e5e7eb;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.filter-panel {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
}

.metric-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background: #fff;
    overflow: hidden;
}

.metric-strip > div {
    padding: 1rem;
    text-align: center;
    border-right: 1px solid #e5e7eb;
}

.metric-strip > div:last-child {
    border-right: 0;
}

/* ─── Hero Full-Size Image Showcase ────────────────── */
.hero-image-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
}

/* Subtle gold glow behind the image */
.hero-image-wrapper::before {
    content: '';
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle at 50% 50%, rgba(212, 168, 67, 0.12), transparent 60%);
    z-index: 0;
    pointer-events: none;
}

.hero-image-main {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    display: block;
    border-radius: 1rem;
    box-shadow:
        0 25px 60px -15px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.08);
    animation: heroImageReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    opacity: 0;
}

@keyframes heroImageReveal {
    0%   { opacity: 0; transform: scale(0.96) translateY(12px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* Responsive: on small screens image sits below the text */
@media (max-width: 1023px) {
    .hero-image-wrapper {
        margin-top: 0.5rem;
    }

    .hero-image-main {
        max-height: 420px;
        object-fit: cover;
        object-position: top center;
    }
}

@media (max-width: 640px) {
    .hero-image-main {
        max-height: 320px;
        border-radius: 0.75rem;
    }

    .hero-image-wrapper {
        border-radius: 0.75rem;
    }
}

/* Dark mode: image gets a subtle border glow */
html.dark .hero-image-main {
    box-shadow:
        0 25px 60px -15px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* Ethiopian Flag Accent Bar */
.ethiopian-flag-bar {
    height: 4px;
    background: linear-gradient(to right, 
        #078930 33.33%, 
        #FCDD09 33.33%, 
        #FCDD09 66.66%, 
        #DA121A 66.66%
    );
}

/* Card Hover Effects */
.job-card {
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.job-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border-color: var(--ethiopian-green);
}

.company-card {
    transition: all 0.3s ease;
}

.company-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Button Styles */
.btn-primary {
    background: var(--ethiopian-green);
    color: white;
    padding: 0.625rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background: var(--ethiopian-green-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(27, 94, 32, 0.3);
}

.btn-gold {
    background: var(--ethiopian-gold);
    color: var(--ethiopian-green-dark);
    padding: 0.625rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-gold:hover {
    background: var(--ethiopian-gold-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 168, 67, 0.3);
}

.btn-outline {
    border: 2px solid var(--ethiopian-green);
    color: var(--ethiopian-green);
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-outline:hover {
    background: var(--ethiopian-green);
    color: white;
}

/* Badge Styles */
.badge-featured {
    background: linear-gradient(135deg, var(--ethiopian-gold), var(--ethiopian-gold-dark));
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.badge-urgent {
    background: #ef4444;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    animation: pulse-urgent 2s infinite;
}

.badge-remote {
    background: #ecfdf5;
    color: #065f46;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.notification-panel {
    min-width: 20rem;
    max-width: 24rem;
    position: absolute;
    right: 0;
    margin-top: 0.75rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
    z-index: 50;
}

.notification-panel.hidden {
    display: none;
}

.notification-panel a {
    display: block;
    color: #065f46;
    text-decoration: none;
}

.notification-panel a:hover {
    background: #f8fafc;
}

@keyframes pulse-urgent {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Dashboard Styles */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(27, 94, 32, 0.08), transparent 28rem),
        linear-gradient(180deg, #f8fafc 0%, #f3f4f6 100%);
}

.dashboard-main {
    flex: 1;
    margin-left: 0;
    min-width: 0;
    padding: 1rem;
}

@media (min-width: 1024px) {
    .dashboard-main {
        margin-left: 16rem;
        padding: 1.5rem;
    }
}

@media (min-width: 1280px) {
    .dashboard-main {
        padding: 2rem;
    }
}

.dashboard-shell {
    max-width: 1440px;
    margin: 0 auto;
}

.dashboard-panel {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 0.5rem;
    box-shadow: 0 18px 45px -35px rgba(15, 23, 42, 0.45);
}

.dashboard-hero {
    background:
        linear-gradient(135deg, rgba(13, 59, 15, 0.96), rgba(27, 94, 32, 0.94)),
        linear-gradient(90deg, rgba(212, 168, 67, 0.16), transparent);
    border-radius: 0.5rem;
    color: white;
    overflow: hidden;
    position: relative;
}

.dashboard-hero::after {
    content: '';
    position: absolute;
    inset: auto -6rem -7rem auto;
    width: 18rem;
    height: 18rem;
    border: 2rem solid rgba(212, 168, 67, 0.12);
    border-radius: 9999px;
}

/* Stat Card */
.stat-card {
    background: white;
    border-radius: 0.5rem;
    padding: 1.25rem;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.stat-card:hover {
    border-color: var(--ethiopian-green);
    box-shadow: 0 16px 32px -28px rgba(15, 23, 42, 0.55);
    transform: translateY(-1px);
}

.stat-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-metric-card {
    position: relative;
    min-height: 10.75rem;
    overflow: hidden;
}

.admin-metric-card::after {
    content: '';
    position: absolute;
    right: -2.5rem;
    top: -2.5rem;
    width: 8rem;
    height: 8rem;
    border-radius: 9999px;
    background: rgba(27, 94, 32, 0.06);
}

.admin-action-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    background: #fff;
    transition: all 0.2s ease;
}

.admin-action-card:hover {
    border-color: rgba(27, 94, 32, 0.35);
    box-shadow: 0 14px 30px -24px rgba(15, 23, 42, 0.7);
    transform: translateY(-1px);
}

.dashboard-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Sidebar Active State */
.sidebar-link.active,
.sidebar-link.bg-ethiopian-green {
    background: var(--ethiopian-green) !important;
    color: white !important;
}

/* Form Styles */
.form-input {
    width: 100%;
    padding: 0.625rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: var(--ethiopian-green);
    box-shadow: 0 0 0 3px rgba(27, 94, 32, 0.1);
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.375rem;
}

/* Google Sign-in Button */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-weight: 500;
    color: #374151;
    background: white;
    transition: all 0.2s ease;
}

.btn-google:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* File Upload Area */
.upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover,
.upload-area.drag-over {
    border-color: var(--ethiopian-green);
    background: rgba(27, 94, 32, 0.03);
}

.upload-area.drag-over {
    background: rgba(27, 94, 32, 0.05);
}

/* CV Card */
.cv-card {
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1rem;
    transition: all 0.2s ease;
}

.cv-card:hover {
    border-color: var(--ethiopian-green);
}

.cv-card.primary {
    border-color: var(--ethiopian-green);
    background: rgba(27, 94, 32, 0.02);
}

/* Table Styles */
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.data-table th {
    background: #f9fafb;
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    border-bottom: 1px solid #e5e7eb;
}

.data-table td {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    border-bottom: 1px solid #f3f4f6;
}

.data-table tr:hover td {
    background: #f9fafb;
}

/* Pagination */
.pagination {
    display: flex;
    gap: 0.25rem;
}

.pagination-btn {
    padding: 0.5rem 0.875rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    transition: all 0.2s ease;
    background: white;
}

.pagination-btn:hover {
    border-color: var(--ethiopian-green);
    color: var(--ethiopian-green);
}

.pagination-btn.active {
    background: var(--ethiopian-green);
    color: white;
    border-color: var(--ethiopian-green);
}

/* View Counter Animation */
.view-counter {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.view-counter .count {
    font-weight: 600;
    color: var(--ethiopian-green);
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #e5e7eb;
    border-top-color: var(--ethiopian-green);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 0.375rem;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Toast Notification */
.toast {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transform: translateX(120%);
    transition: transform 0.3s ease;
}

.toast.show {
    transform: translateX(0);
}

.toast-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.toast-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Responsive Adjustments */
@media (max-width: 640px) {
    .hero-gradient {
        padding: 2rem 1rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .data-table {
        font-size: 0.8125rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.5rem 0.75rem;
    }
}

/* Print Styles */
body.dark {
    background: #020617;
    color: #e2e8f0;
}

body.dark .bg-white {
    background-color: #0f172a !important;
}

body.dark .bg-gray-50,
body.dark .public-page,
body.dark .public-shell,
body.dark .search-panel,
body.dark .soft-card,
body.dark .job-list-card,
body.dark .company-list-card,
body.dark .filter-panel,
body.dark .metric-strip,
body.dark .dashboard-panel,
body.dark .admin-metric-card,
body.dark .admin-action-card,
body.dark .stat-card,
body.dark .cv-card,
body.dark .data-table th,
body.dark .data-table td {
    background-color: #0f172a !important;
    color: #e2e8f0 !important;
}

body.dark .text-gray-900,
body.dark .text-gray-800,
body.dark .text-gray-700,
body.dark .text-gray-600,
body.dark .text-gray-500,
body.dark .text-gray-400 {
    color: #cbd5e1 !important;
}

body.dark .border-gray-100,
body.dark .border-gray-200,
body.dark .border-gray-300 {
    border-color: #334155 !important;
}

body.dark .hover\:bg-gray-100:hover {
    background-color: #1f2937 !important;
}

body.dark .btn-primary {
    background: #115e59;
}

body.dark .btn-primary:hover {
    background: #0f766e;
}

body.dark .btn-outline {
    color: #e2e8f0;
    border-color: #475569;
}

body.dark .notification-panel {
    background: #0f172a;
    border-color: #334155;
    color: #cbd5e1;
}

body.dark .notification-panel a:hover {
    background: #1e293b;
}

@media print {
    nav, footer, .sidebar, .ad-container, .btn-primary, .btn-gold {
        display: none !important;
    }
    
    .dashboard-main {
        margin: 0 !important;
    }
    
    body {
        background: white;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

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

.animate-slide-up {
    animation: slideUp 0.6s ease forwards;
}

/* Stagger animation delay */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
.stagger-6 { animation-delay: 0.6s; }

/* Fade-in-up Animation */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Staggered fade-in-up delays */
.animate-fade-in-up.delay-1 { animation-delay: 0.1s; opacity: 0; }
.animate-fade-in-up.delay-2 { animation-delay: 0.2s; opacity: 0; }
.animate-fade-in-up.delay-3 { animation-delay: 0.3s; opacity: 0; }
.animate-fade-in-up.delay-4 { animation-delay: 0.4s; opacity: 0; }
.animate-fade-in-up.delay-5 { animation-delay: 0.5s; opacity: 0; }

/* ─── Public Page Dark Mode Refinements ────────────── */
html.dark .section-kicker {
    color: #6ee7b7;
}

html.dark .public-page {
    background:
        radial-gradient(circle at top left, rgba(27, 94, 32, 0.12), transparent 30rem),
        linear-gradient(180deg, #0f172a 0%, #020617 42%, #020617 100%);
}

html.dark .auth-split-brand {
    background: linear-gradient(135deg, #0D3B0F 0%, #1B5E20 50%, #2E7D32 100%);
}

html.dark .auth-form-side {
    background: #020617;
}

html.dark .btn-google {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}

html.dark .btn-google:hover {
    background: #1e293b;
    border-color: #475569;
}

/* Dark mode for auth divider */
html.dark .auth-form-side .bg-white {
    background-color: #0f172a !important;
}

html.dark .auth-form-side .border-gray-200 {
    border-color: #334155;
}

html.dark .auth-form-side .text-gray-500 {
    color: #94a3b8;
}

/* Dark mode for role selection cards in signup */
html.dark .peer-checked\:bg-green-50:has(input:checked) {
    background-color: rgba(27, 94, 32, 0.15) !important;
    border-color: var(--ethiopian-green) !important;
}

/* Dark mode for FAQ cards */
html.dark .bg-gray-50 {
    background-color: #1e293b !important;
}

html.dark .bg-green-50 {
    background-color: rgba(27, 94, 32, 0.1) !important;
}

html.dark .bg-yellow-50 {
    background-color: rgba(212, 168, 67, 0.1) !important;
}

html.dark .bg-blue-50 {
    background-color: rgba(59, 130, 246, 0.1) !important;
}

html.dark .bg-sky-50 {
    background-color: rgba(14, 165, 233, 0.1) !important;
}

/* Dark mode for stat card gradient */
html.dark .stat-card-gradient {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.9));
    border: 1px solid #1e293b;
}

/* Dark mode for job type badges */
html.dark .job-type-full-time { background: rgba(27, 94, 32, 0.15); color: #6ee7b7; }
html.dark .job-type-part-time { background: rgba(59, 130, 246, 0.15); color: #93c5fd; }
html.dark .job-type-contract { background: rgba(212, 168, 67, 0.15); color: #fde68a; }
html.dark .job-type-internship { background: rgba(168, 85, 247, 0.15); color: #c4b5fd; }
html.dark .job-type-remote { background: rgba(27, 94, 32, 0.15); color: #6ee7b7; }
html.dark .job-type-hybrid { background: rgba(236, 72, 153, 0.15); color: #f9a8d4; }

/* Dark mode for salary badge */
html.dark .job-salary-badge {
    background: rgba(212, 168, 67, 0.12);
    color: #fde68a;
    border: 1px solid rgba(212, 168, 67, 0.2);
}

/* Dark mode for pricing feature items */
html.dark .pricing-feature-item {
    color: #cbd5e1;
}

html.dark .pricing-feature-check {
    background: rgba(27, 94, 32, 0.2);
    border-color: rgba(27, 94, 32, 0.4);
}

/* Sticky apply button on mobile */
@media (max-width: 1023px) {
    .sticky-apply-mobile {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 40;
        padding: 0.75rem 1rem;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-top: 1px solid #e5e7eb;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
    }

    html.dark .sticky-apply-mobile {
        background: rgba(15, 23, 42, 0.95);
        border-top-color: #1e293b;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
    }

    body:has(.sticky-apply-mobile) {
        padding-bottom: 5rem;
    }
}

/* Smooth page transition on load */
.page-enter {
    animation: pageEnter 0.4s ease forwards;
}

@keyframes pageEnter {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Prose/Rich content improvements for dark mode */
html.dark .rich-content h1,
html.dark .rich-content h2,
html.dark .rich-content h3,
html.dark .rich-content h4,
html.dark .rich-content h5,
html.dark .rich-content h6 {
    color: #e2e8f0;
}

html.dark .rich-content p,
html.dark .rich-content li {
    color: #cbd5e1;
}

html.dark .rich-content a {
    color: #6ee7b7;
}

html.dark .rich-content strong {
    color: #e2e8f0;
}

html.dark .rich-content blockquote {
    border-left-color: var(--ethiopian-green);
    background: rgba(27, 94, 32, 0.05);
    color: #cbd5e1;
}

/* Skeleton loading for job cards */
.skeleton-job-card {
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    background: white;
}

html.dark .skeleton-job-card {
    background: #0f172a;
    border-color: #1e293b;
}

/* =====================================================
   MODERN CSS ENHANCEMENTS — LIYU JOBS
   Ethiopian Green (#1B5E20) · Gold (#D4A843)
   ===================================================== */

/* ─── 1. Glassmorphism Effects ─────────────────────── */
.glass-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 0.75rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.glass-panel {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(20px) saturate(200%);
    -webkit-backdrop-filter: blur(20px) saturate(200%);
    border: 1px solid rgba(226, 232, 240, 0.5);
    border-radius: 1rem;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
}

.glass-nav {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.4);
}

/* ─── 2. Smooth Micro-Animations ───────────────────── */
.hover-lift {
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.25s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px -8px rgba(27, 94, 32, 0.18);
}

.hover-scale {
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hover-scale:hover {
    transform: scale(1.03);
}

.hover-glow {
    transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(27, 94, 32, 0.2), 0 0 40px rgba(27, 94, 32, 0.08);
}

.hover-border-glow {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.hover-border-glow:hover {
    border-color: var(--ethiopian-green);
    box-shadow: 0 0 0 3px rgba(27, 94, 32, 0.08), 0 8px 24px -8px rgba(27, 94, 32, 0.15);
}

.btn-press {
    transition: transform 0.1s ease, box-shadow 0.15s ease;
}

.btn-press:active {
    transform: scale(0.97);
}

/* ─── 3. Better Dark Mode with `.dark` on <html> ──── */
html.dark {
    color-scheme: dark;
}

html.dark body {
    background: #020617;
    color: #e2e8f0;
}

html.dark .glass-card,
html.dark .glass-panel {
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(51, 65, 85, 0.5);
}

html.dark .glass-nav {
    background: rgba(15, 23, 42, 0.85);
    border-bottom-color: rgba(51, 65, 85, 0.5);
}

html.dark .job-list-card,
html.dark .company-list-card,
html.dark .soft-card {
    background: #0f172a;
    border-color: #1e293b;
    color: #e2e8f0;
}

html.dark .job-list-card:hover,
html.dark .company-list-card:hover {
    border-color: rgba(27, 94, 32, 0.6);
    box-shadow: 0 18px 40px -32px rgba(0, 0, 0, 0.5);
}

html.dark .search-panel {
    background: rgba(15, 23, 42, 0.95);
    border-color: #1e293b;
}

html.dark .stat-card {
    background: #0f172a;
    border-color: #1e293b;
}

html.dark .stat-card:hover {
    border-color: var(--ethiopian-green);
}

html.dark .filter-panel,
html.dark .metric-strip {
    background: #0f172a;
    border-color: #1e293b;
}

html.dark .metric-strip > div {
    border-right-color: #1e293b;
}

html.dark .dashboard-panel {
    background: rgba(15, 23, 42, 0.92);
    border-color: #1e293b;
}

html.dark .admin-action-card,
html.dark .cv-card {
    background: #0f172a;
    border-color: #1e293b;
}

html.dark .data-table th {
    background: #0f172a;
    color: #94a3b8;
    border-bottom-color: #1e293b;
}

html.dark .data-table td {
    border-bottom-color: #1e293b;
    color: #cbd5e1;
}

html.dark .data-table tr:hover td {
    background: #1e293b;
}

html.dark .form-input {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}

html.dark .form-input:focus {
    border-color: var(--ethiopian-green);
    box-shadow: 0 0 0 3px rgba(27, 94, 32, 0.2);
}

html.dark .badge-remote {
    background: rgba(27, 94, 32, 0.15);
    color: #6ee7b7;
}

html.dark .notification-panel {
    background: #0f172a;
    border-color: #1e293b;
    color: #cbd5e1;
}

html.dark .info-pill {
    background: #1e293b;
    color: #94a3b8;
    border-color: #334155;
}

html.dark .logo-tile {
    background: #1e293b;
    color: #94a3b8;
}

html.dark ::-webkit-scrollbar-track {
    background: #0f172a;
}

html.dark ::-webkit-scrollbar-thumb {
    background: #334155;
}

html.dark ::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

html.dark .pagination-btn {
    background: #0f172a;
    border-color: #1e293b;
    color: #cbd5e1;
}

html.dark .pagination-btn:hover {
    border-color: var(--ethiopian-green);
    color: #6ee7b7;
}

html.dark .upload-area {
    border-color: #334155;
    background: transparent;
}

html.dark .upload-area:hover {
    border-color: var(--ethiopian-green);
    background: rgba(27, 94, 32, 0.05);
}

html.dark .btn-google {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}

html.dark .btn-google:hover {
    background: #1e293b;
}

/* ─── 4. Skeleton Loading with Gradient Shimmer ────── */
.skeleton-v2 {
    background: linear-gradient(
        90deg,
        #e5e7eb 0%,
        #f3f4f6 20%,
        #e5e7eb 40%,
        #e5e7eb 100%
    );
    background-size: 300% 100%;
    animation: shimmer-v2 1.8s ease-in-out infinite;
    border-radius: 0.5rem;
}

@keyframes shimmer-v2 {
    0%   { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.skeleton-circle {
    border-radius: 50%;
}

.skeleton-text {
    height: 0.875rem;
    margin-bottom: 0.5rem;
    border-radius: 0.25rem;
}

.skeleton-text:last-child {
    width: 65%;
}

.skeleton-heading {
    height: 1.5rem;
    width: 50%;
    margin-bottom: 0.75rem;
    border-radius: 0.25rem;
}

html.dark .skeleton-v2 {
    background: linear-gradient(
        90deg,
        #1e293b 0%,
        #334155 20%,
        #1e293b 40%,
        #1e293b 100%
    );
    background-size: 300% 100%;
}

/* ─── 5. Floating Action Button (FAB) ──────────────── */
.fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: var(--ethiopian-green);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(27, 94, 32, 0.35);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 40;
    border: none;
    outline: none;
}

.fab:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 10px 30px rgba(27, 94, 32, 0.4);
    background: var(--ethiopian-green-dark);
}

.fab:active {
    transform: scale(0.95);
}

.fab-gold {
    background: var(--ethiopian-gold);
    color: var(--ethiopian-green-dark);
    box-shadow: 0 6px 20px rgba(212, 168, 67, 0.35);
}

.fab-gold:hover {
    background: var(--ethiopian-gold-light);
    box-shadow: 0 10px 30px rgba(212, 168, 67, 0.4);
}

/* ─── 6. Badge Improvements with Subtle Glow ───────── */
.badge-glow-green {
    background: rgba(27, 94, 32, 0.12);
    color: var(--ethiopian-green);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    box-shadow: 0 0 8px rgba(27, 94, 32, 0.15);
    border: 1px solid rgba(27, 94, 32, 0.2);
}

.badge-glow-gold {
    background: rgba(212, 168, 67, 0.12);
    color: var(--ethiopian-gold-dark);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    box-shadow: 0 0 8px rgba(212, 168, 67, 0.2);
    border: 1px solid rgba(212, 168, 67, 0.25);
}

.badge-glow-green:hover,
.badge-glow-gold:hover {
    box-shadow: 0 0 16px rgba(27, 94, 32, 0.2), 0 0 32px rgba(27, 94, 32, 0.08);
}

html.dark .badge-glow-green {
    background: rgba(27, 94, 32, 0.2);
    color: #6ee7b7;
    border-color: rgba(27, 94, 32, 0.35);
    box-shadow: 0 0 12px rgba(27, 94, 32, 0.2);
}

html.dark .badge-glow-gold {
    background: rgba(212, 168, 67, 0.18);
    color: var(--ethiopian-gold-light);
    border-color: rgba(212, 168, 67, 0.3);
    box-shadow: 0 0 12px rgba(212, 168, 67, 0.2);
}

/* ─── 7. Search Input Animated Focus States ────────── */
.search-input-animated {
    position: relative;
    transition: all 0.3s ease;
}

.search-input-animated::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--ethiopian-green), var(--ethiopian-gold));
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: translateX(-50%);
    border-radius: 1px;
}

.search-input-animated:focus-within::after {
    width: 100%;
}

.search-input-animated input:focus {
    border-color: var(--ethiopian-green);
    box-shadow: 0 0 0 4px rgba(27, 94, 32, 0.08);
}

/* ─── 8. Toast Notification Improvements ───────────── */
.toast-v2 {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 9999;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
    transform: translateX(calc(100% + 2rem));
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    max-width: 22rem;
    font-size: 0.875rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.toast-v2.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-v2-success {
    background: rgba(236, 253, 245, 0.95);
    color: #065f46;
    border: 1px solid rgba(167, 243, 208, 0.6);
}

.toast-v2-error {
    background: rgba(254, 242, 242, 0.95);
    color: #991b1b;
    border: 1px solid rgba(254, 202, 202, 0.6);
}

.toast-v2-info {
    background: rgba(239, 246, 255, 0.95);
    color: #1e40af;
    border: 1px solid rgba(191, 219, 254, 0.6);
}

.toast-v2-warning {
    background: rgba(255, 251, 235, 0.95);
    color: #92400e;
    border: 1px solid rgba(253, 230, 138, 0.6);
}

html.dark .toast-v2-success {
    background: rgba(27, 94, 32, 0.25);
    color: #6ee7b7;
    border-color: rgba(27, 94, 32, 0.4);
}

/* ─── 9. Dashboard Dark Mode Refinements ───────────── */
html.dark .dashboard-wrapper {
    background:
        radial-gradient(circle at top left, rgba(27, 94, 32, 0.12), transparent 28rem),
        linear-gradient(180deg, #0f172a 0%, #020617 100%);
}

html.dark .admin-metric-card {
    border-color: #1e293b;
}

html.dark .admin-metric-card::after {
    background: rgba(27, 94, 32, 0.08);
}

html.dark .admin-action-card:hover {
    border-color: rgba(27, 94, 32, 0.5);
    background: #1e293b;
}

/* Dark mode for dashboard chart bars */
html.dark .chart-bar { fill: #6ee7b7; opacity: 0.85; }
html.dark .chart-bar-empty { fill: #334155; opacity: 0.4; }
html.dark .chart-line { stroke: #334155; }
html.dark .chart-label { fill: #94a3b8; }
html.dark .chart-value { fill: #6ee7b7; }

/* Dark mode for status badges used in dashboards */
html.dark .status-badge-active { background: rgba(34, 197, 94, 0.15); color: #86efac; }
html.dark .status-badge-pending { background: rgba(245, 158, 11, 0.15); color: #fcd34d; }
html.dark .status-badge-inactive { background: rgba(107, 114, 128, 0.15); color: #d1d5db; }
html.dark .status-badge-suspended { background: rgba(239, 68, 68, 0.15); color: #fca5a5; }
html.dark .status-badge-draft { background: rgba(59, 130, 246, 0.15); color: #93c5fd; }
html.dark .status-badge-closed { background: rgba(107, 114, 128, 0.15); color: #d1d5db; }
html.dark .status-badge-expired { background: rgba(107, 114, 128, 0.15); color: #d1d5db; }
html.dark .status-badge-paused { background: rgba(234, 179, 8, 0.15); color: #fde047; }
html.dark .status-badge-completed { background: rgba(34, 197, 94, 0.15); color: #86efac; }
html.dark .status-badge-applied { background: rgba(59, 130, 246, 0.15); color: #93c5fd; }
html.dark .status-badge-reviewed { background: rgba(234, 179, 8, 0.15); color: #fde047; }
html.dark .status-badge-shortlisted { background: rgba(168, 85, 247, 0.15); color: #c4b5fd; }
html.dark .status-badge-interviewed { background: rgba(99, 102, 241, 0.15); color: #a5b4fc; }
html.dark .status-badge-offered { background: rgba(20, 184, 166, 0.15); color: #5eead4; }
html.dark .status-badge-hired { background: rgba(34, 197, 94, 0.15); color: #86efac; }
html.dark .status-badge-rejected { background: rgba(239, 68, 68, 0.15); color: #fca5a5; }
html.dark .status-badge-withdrawn { background: rgba(107, 114, 128, 0.15); color: #d1d5db; }
html.dark .status-badge-failed { background: rgba(239, 68, 68, 0.15); color: #fca5a5; }
html.dark .status-badge-refunded { background: rgba(100, 116, 139, 0.15); color: #cbd5e1; }

/* Smooth table row transitions */
.data-table tr {
    transition: background-color 0.15s ease;
}

/* Better focus states for form inputs in dashboard */
.form-input::placeholder {
    color: #9ca3af;
}

html.dark .form-input::placeholder {
    color: #64748b;
}

/* File input dark mode fix */
html.dark input[type="file"] {
    color: #cbd5e1;
}

html.dark input[type="file"]::-webkit-file-upload-button {
    background: #1e293b;
    border: 1px solid #334155;
    color: #cbd5e1;
    border-radius: 0.375rem;
    padding: 0.375rem 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

html.dark input[type="file"]::-webkit-file-upload-button:hover {
    background: #334155;
    border-color: #475569;
}

/* Select dropdown dark mode */
html.dark select.form-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
}

/* Textarea dark mode resize handle */
html.dark textarea.form-input {
    resize: vertical;
}

/* Dashboard hero section - ensure dark mode consistency */
html.dark .dashboard-hero {
    background:
        linear-gradient(135deg, rgba(13, 59, 15, 0.98), rgba(27, 94, 32, 0.96)),
        linear-gradient(90deg, rgba(212, 168, 67, 0.12), transparent);
}

/* Empty state illustrations - better dark mode */
html.dark .empty-state-icon {
    color: #475569;
}

/* Dashboard card with gradient - dark mode smooth transition */
.bg-gradient-to-br {
    transition: all 0.2s ease;
}

/* TinyMCE editor dark mode overrides */
html.dark .tox-tinymce {
    border-color: #334155 !important;
}

html.dark .tox .tox-toolbar__primary {
    background-color: #1e293b !important;
}

html.dark .tox .tox-edit-area__iframe {
    background-color: #0f172a !important;
}

/* Smooth scroll for dashboard */
.dashboard-main {
    scroll-behavior: smooth;
}

/* Better empty state styling */
.empty-state-container {
    padding: 3rem 1.5rem;
    text-align: center;
}

.empty-state-container svg {
    margin: 0 auto 1rem;
    opacity: 0.6;
}

html.dark .empty-state-container svg {
    opacity: 0.4;
}

/* Pending review banner dark mode */
html.dark .pending-review-banner {
    background: linear-gradient(to right, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05), rgba(253, 224, 71, 0.05));
    border-color: rgba(245, 158, 11, 0.3);
}

/* Profile completion banner dark mode */
html.dark .profile-completion-banner {
    background: #0f172a;
    border-color: #1e293b;
}

/* Application status grid dark mode */
html.dark .status-grid-item {
    border-color: #1e293b;
}

html.dark .toast-v2-error {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.35);
}

html.dark .toast-v2-info {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    border-color: rgba(59, 130, 246, 0.35);
}

html.dark .toast-v2-warning {
    background: rgba(212, 168, 67, 0.2);
    color: #fde68a;
    border-color: rgba(212, 168, 67, 0.35);
}

/* ─── 9. Tooltip Styles for Action Buttons ──────────── */
.tooltip-wrap {
    position: relative;
    display: inline-flex;
}

.tooltip-wrap::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    padding: 0.375rem 0.75rem;
    background: var(--ethiopian-green-dark);
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 0.375rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 50;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tooltip-wrap::after {
    content: '';
    position: absolute;
    bottom: calc(100% + 0.125rem);
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--ethiopian-green-dark);
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    z-index: 50;
}

.tooltip-wrap:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.tooltip-wrap:hover::after {
    opacity: 1;
}

/* Bottom tooltip variant */
.tooltip-bottom::before {
    bottom: auto;
    top: calc(100% + 0.5rem);
    transform: translateX(-50%) translateY(-4px);
}

.tooltip-bottom::after {
    bottom: auto;
    top: calc(100% + 0.125rem);
    border-top-color: transparent;
    border-bottom-color: var(--ethiopian-green-dark);
}

.tooltip-bottom:hover::before {
    transform: translateX(-50%) translateY(0);
}

/* ─── 10. Pulse Animation for Pending Status Badges ── */
.badge-pending {
    background: rgba(212, 168, 67, 0.15);
    color: var(--ethiopian-gold-dark);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    border: 1px solid rgba(212, 168, 67, 0.25);
    animation: pulse-pending 2.5s ease-in-out infinite;
}

.badge-pending::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ethiopian-gold);
    animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-pending {
    0%, 100% { box-shadow: 0 0 0 0 rgba(212, 168, 67, 0.2); }
    50%      { box-shadow: 0 0 0 6px rgba(212, 168, 67, 0); }
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.5; transform: scale(0.75); }
}

html.dark .badge-pending {
    background: rgba(212, 168, 67, 0.15);
    color: var(--ethiopian-gold-light);
    border-color: rgba(212, 168, 67, 0.3);
}

/* ─── 11. Card Entrance Animations with Stagger ────── */
.card-entrance {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card-entrance.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.card-entrance-stagger > *:nth-child(1)  { transition-delay: 0.05s; }
.card-entrance-stagger > *:nth-child(2)  { transition-delay: 0.1s;  }
.card-entrance-stagger > *:nth-child(3)  { transition-delay: 0.15s; }
.card-entrance-stagger > *:nth-child(4)  { transition-delay: 0.2s;  }
.card-entrance-stagger > *:nth-child(5)  { transition-delay: 0.25s; }
.card-entrance-stagger > *:nth-child(6)  { transition-delay: 0.3s;  }
.card-entrance-stagger > *:nth-child(7)  { transition-delay: 0.35s; }
.card-entrance-stagger > *:nth-child(8)  { transition-delay: 0.4s;  }
.card-entrance-stagger > *:nth-child(9)  { transition-delay: 0.45s; }
.card-entrance-stagger > *:nth-child(10) { transition-delay: 0.5s;  }

/* Slide-in from left variant */
.card-entrance-left {
    opacity: 0;
    transform: translateX(-24px);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card-entrance-left.animate-in {
    opacity: 1;
    transform: translateX(0);
}

/* Scale-in variant */
.card-entrance-scale {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card-entrance-scale.animate-in {
    opacity: 1;
    transform: scale(1);
}

/* ─── 12. Scroll Progress Indicator ────────────────── */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--ethiopian-green), var(--ethiopian-gold));
    z-index: 9999;
    transition: width 0.1s linear;
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 8px rgba(27, 94, 32, 0.3);
}

/* ─── 13. Better Form Input Focus/Hover with Green Glow */
.form-input-v2 {
    width: 100%;
    padding: 0.625rem 1rem;
    border: 1.5px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    background: white;
    transition: all 0.25s ease;
}

.form-input-v2:hover {
    border-color: #9ca3af;
}

.form-input-v2:focus {
    outline: none;
    border-color: var(--ethiopian-green);
    box-shadow: 0 0 0 4px rgba(27, 94, 32, 0.1), 0 0 16px rgba(27, 94, 32, 0.06);
}

.form-input-v2::placeholder {
    color: #9ca3af;
    transition: color 0.2s ease;
}

.form-input-v2:focus::placeholder {
    color: #6b7280;
}

html.dark .form-input-v2 {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}

html.dark .form-input-v2:hover {
    border-color: #475569;
}

html.dark .form-input-v2:focus {
    border-color: var(--ethiopian-green);
    box-shadow: 0 0 0 4px rgba(27, 94, 32, 0.15), 0 0 16px rgba(27, 94, 32, 0.08);
}

/* ─── 14. Notification Dot Animation ───────────────── */
.notification-dot {
    position: relative;
}

.notification-dot::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid white;
    animation: notification-pulse 2s ease-in-out infinite;
}

@keyframes notification-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }
}

.notification-dot-count {
    position: absolute;
    top: -6px;
    right: -8px;
    min-width: 1.25rem;
    height: 1.25rem;
    background: #ef4444;
    color: white;
    border-radius: 9999px;
    font-size: 0.625rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.25rem;
    border: 2px solid white;
    animation: notification-bounce 2s ease-in-out infinite;
}

@keyframes notification-bounce {
    0%, 100% { transform: scale(1); }
    25%      { transform: scale(1.15); }
    50%      { transform: scale(1); }
    75%      { transform: scale(1.08); }
}

html.dark .notification-dot::after,
html.dark .notification-dot-count {
    border-color: #0f172a;
}

/* ─── 15. Sidebar Hover Effect with Slide Indicator ── */
.sidebar-link-v2 {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4b5563;
    transition: all 0.2s ease;
    overflow: hidden;
}

.sidebar-link-v2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 3px;
    height: 60%;
    background: var(--ethiopian-gold);
    border-radius: 0 2px 2px 0;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sidebar-link-v2:hover {
    background: rgba(27, 94, 32, 0.06);
    color: var(--ethiopian-green);
    padding-left: 1.25rem;
}

.sidebar-link-v2:hover::before {
    transform: translateY(-50%) scaleY(1);
}

.sidebar-link-v2.active {
    background: var(--ethiopian-green);
    color: white;
}

.sidebar-link-v2.active::before {
    transform: translateY(-50%) scaleY(1);
    background: var(--ethiopian-gold);
}

html.dark .sidebar-link-v2 {
    color: #94a3b8;
}

html.dark .sidebar-link-v2:hover {
    background: rgba(27, 94, 32, 0.15);
    color: #6ee7b7;
}

html.dark .sidebar-link-v2.active {
    background: var(--ethiopian-green);
    color: white;
}

/* ─── Extra: Search Suggestions Dropdown ───────────── */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.25rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
    z-index: 50;
    max-height: 18rem;
    overflow-y: auto;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: all 0.2s ease;
}

.search-suggestions.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.search-suggestions a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    color: #374151;
    text-decoration: none;
    transition: background 0.15s ease;
}

.search-suggestions a:hover {
    background: rgba(27, 94, 32, 0.06);
}

.search-suggestions a:first-child {
    border-radius: 0.75rem 0.75rem 0 0;
}

.search-suggestions a:last-child {
    border-radius: 0 0 0.75rem 0.75rem;
}

html.dark .search-suggestions {
    background: #0f172a;
    border-color: #1e293b;
}

html.dark .search-suggestions a {
    color: #cbd5e1;
}

html.dark .search-suggestions a:hover {
    background: rgba(27, 94, 32, 0.15);
}

/* ─── Extra: Focus-visible for Accessibility ──────── */
*:focus-visible {
    outline: 2px solid var(--ethiopian-green);
    outline-offset: 2px;
    border-radius: 2px;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--ethiopian-gold);
    outline-offset: 2px;
}

/* ─── Extra: Reduced Motion Preference ─────────────── */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

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

/* ─── Extra: Back-to-top button v2 ─────────────────── */
.back-to-top-v2 {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: var(--ethiopian-green);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(27, 94, 32, 0.3);
    cursor: pointer;
    opacity: 0;
    transform: translateY(16px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 40;
    border: none;
    outline: none;
}

.back-to-top-v2.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top-v2:hover {
    background: var(--ethiopian-green-dark);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(27, 94, 32, 0.35);
}

html.dark .back-to-top-v2 {
    background: var(--ethiopian-green-light);
    box-shadow: 0 4px 16px rgba(27, 94, 32, 0.4);
}

/* ─── TinyMCE WYSIWYG Editor Styles ────────────────── */

/* Editor container */
.liyu-editor {
    display: none; /* Hidden until TinyMCE initializes */
}

/* Editor wrapper when active */
.mce-tinymce {
    border-radius: 0.75rem !important;
    overflow: hidden;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 4px 16px -8px rgba(0, 0, 0, 0.1);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mce-tinymce:hover {
    border-color: rgba(27, 94, 32, 0.3) !important;
}

.mce-tinymce:focus-within {
    border-color: var(--ethiopian-green) !important;
    box-shadow: 0 0 0 3px rgba(27, 94, 32, 0.1), 0 4px 16px -8px rgba(0, 0, 0, 0.1);
}

/* Toolbar styling */
.mce-top-part {
    background: #f9fafb !important;
    border-bottom: 1px solid #e5e7eb !important;
}

.mce-toolbar-grp {
    background: transparent !important;
    padding: 4px !important;
}

.mce-btn {
    border-radius: 6px !important;
    margin: 1px !important;
    transition: background 0.15s ease;
}

.mce-btn:hover,
.mce-btn:focus {
    background: rgba(27, 94, 32, 0.08) !important;
    border-color: rgba(27, 94, 32, 0.2) !important;
}

.mce-btn.mce-active {
    background: rgba(27, 94, 32, 0.12) !important;
    border-color: rgba(27, 94, 32, 0.3) !important;
    color: var(--ethiopian-green) !important;
}

.mce-btn button {
    color: #374151 !important;
}

.mce-btn:hover button,
.mce-btn:focus button {
    color: var(--ethiopian-green) !important;
}

/* Primary action buttons in editor */
.mce-btn.mce-primary {
    background: var(--ethiopian-green) !important;
    border-color: var(--ethiopian-green) !important;
}

.mce-btn.mce-primary button {
    color: white !important;
}

.mce-btn.mce-primary:hover {
    background: var(--ethiopian-green-dark) !important;
}

/* Edit area */
.mce-edit-area {
    border: none !important;
}

.mce-edit-area iframe {
    border-radius: 0 !important;
}

/* Status bar */
.mce-statusbar {
    background: #f9fafb !important;
    border-top: 1px solid #e5e7eb !important;
}

.mce-statusbar .mce-container-body {
    color: #9ca3af !important;
    font-size: 12px;
}

/* Menubar */
.mce-menubar {
    background: #f9fafb !important;
    border-bottom: 1px solid #e5e7eb !important;
}

.mce-menubar .mce-menubtn {
    border-radius: 4px !important;
}

.mce-menubar .mce-menubtn:hover {
    background: rgba(27, 94, 32, 0.08) !important;
}

/* Dialog/modal styling */
.mce-window {
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2) !important;
}

.mce-window-head {
    background: linear-gradient(135deg, var(--ethiopian-green-dark), var(--ethiopian-green)) !important;
    color: white !important;
}

.mce-window-head .mce-title {
    color: white !important;
    font-family: 'Poppins', system-ui, sans-serif !important;
    font-weight: 600 !important;
}

.mce-window-head .mce-close {
    color: rgba(255, 255, 255, 0.7) !important;
}

.mce-window-head .mce-close:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

.mce-foot .mce-btn.mce-primary {
    background: var(--ethiopian-green) !important;
    border-color: var(--ethiopian-green) !important;
    border-radius: 8px !important;
}

.mce-foot .mce-btn.mce-primary:hover {
    background: var(--ethiopian-green-dark) !important;
}

/* Rich content display styles (front-end) */
.rich-content h1 {
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 2em;
    font-weight: 700;
    color: #0D3B0F;
    margin: 0.8em 0 0.4em;
    border-bottom: 2px solid rgba(212, 168, 67, 0.2);
    padding-bottom: 0.3em;
}

.rich-content h2 {
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 1.6em;
    font-weight: 700;
    color: #1B5E20;
    margin: 0.8em 0 0.4em;
}

.rich-content h3 {
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 1.3em;
    font-weight: 600;
    color: #0D3B0F;
    margin: 0.6em 0 0.3em;
}

.rich-content h4 {
    font-size: 1.1em;
    font-weight: 600;
    color: #374151;
    margin: 0.5em 0 0.25em;
}

.rich-content a {
    color: #1B5E20;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.rich-content a:hover {
    color: #2E7D32;
}

.rich-content blockquote {
    border-left: 4px solid #D4A843;
    padding: 0.5em 1em;
    margin: 1em 0;
    background: rgba(254, 252, 232, 0.2);
    border-radius: 0 8px 8px 0;
    color: #475569;
}

.rich-content code {
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    color: #0D3B0F;
    font-family: 'Courier New', monospace;
}

.rich-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1em;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1em 0;
}

.rich-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

.rich-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 0.5em 0;
}

.rich-content ul, .rich-content ol {
    padding-left: 1.5em;
    margin: 0.5em 0;
}

.rich-content li {
    margin-bottom: 0.3em;
}

.rich-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 1em 0;
    font-size: 0.9em;
}

.rich-content th {
    background: #1B5E20;
    color: #fff;
    padding: 8px 12px;
    text-align: left;
    font-weight: 600;
}

.rich-content td {
    border: 1px solid #e5e7eb;
    padding: 8px 12px;
}

.rich-content tr:nth-child(even) td {
    background: #f9fafb;
}

.rich-content hr {
    border: none;
    border-top: 2px solid rgba(212, 168, 67, 0.25);
    margin: 1.5em 0;
}

.rich-content .editor-callout {
    background: linear-gradient(135deg, rgba(27, 94, 32, 0.06), rgba(212, 168, 67, 0.06));
    border: 1px solid rgba(27, 94, 32, 0.15);
    border-left: 4px solid #1B5E20;
    border-radius: 0 8px 8px 0;
    padding: 1em 1.25em;
    margin: 1em 0;
}

.rich-content .editor-highlight {
    background: rgba(212, 168, 67, 0.2);
    padding: 2px 4px;
    border-radius: 3px;
}

/* Collaborative editing presence avatars */
.collab-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    flex-shrink: 0;
}

.collab-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 4px;
}

.collab-dot-green {
    background: #22c55e;
    animation: collabPulse 2s ease-in-out infinite;
}

.collab-dot-yellow {
    background: #eab308;
    animation: collabPulse 2s ease-in-out infinite;
}

.collab-dot-red {
    background: #ef4444;
}

@keyframes collabPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.85); }
}

/* Collaborative toast notification */
.collab-toast {
    position: fixed;
    bottom: 80px;
    right: 24px;
    z-index: 10000;
    background: #0D3B0F;
    color: white;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transform: translateY(16px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.collab-toast-visible {
    transform: translateY(0);
    opacity: 1;
}

/* Dark mode overrides for TinyMCE */
html.dark .mce-tinymce {
    border-color: #334155 !important;
}

html.dark .mce-top-part,
html.dark .mce-toolbar-grp,
html.dark .mce-statusbar,
html.dark .mce-menubar {
    background: #0f172a !important;
    border-color: #1e293b !important;
}

html.dark .mce-btn {
    background: transparent !important;
    border-color: #334155 !important;
}

html.dark .mce-btn button {
    color: #e2e8f0 !important;
}

html.dark .mce-btn:hover,
html.dark .mce-btn:focus {
    background: rgba(27, 94, 32, 0.15) !important;
    border-color: rgba(27, 94, 32, 0.4) !important;
}

html.dark .mce-btn.mce-active {
    background: rgba(27, 94, 32, 0.2) !important;
}

/* Dark mode rich content */
html.dark .rich-content h1 { color: #6ee7b7; border-bottom-color: rgba(212, 168, 67, 0.3); }
html.dark .rich-content h2 { color: #86efac; }
html.dark .rich-content h3 { color: #6ee7b7; }
html.dark .rich-content h4 { color: #cbd5e1; }
html.dark .rich-content a { color: #86efac; }
html.dark .rich-content a:hover { color: #6ee7b7; }
html.dark .rich-content blockquote { background: rgba(212, 168, 67, 0.07); border-left-color: #D4A843; color: #94a3b8; }
html.dark .rich-content code { background: #1e293b; color: #86efac; }
html.dark .rich-content pre { background: #0f172a; border: 1px solid #334155; }
html.dark .rich-content th { background: #0D3B0F; }
html.dark .rich-content td { border-color: #334155; }
html.dark .rich-content tr:nth-child(even) td { background: #1e293b; }
html.dark .rich-content hr { border-top-color: rgba(212, 168, 67, 0.15); }
html.dark .rich-content .editor-callout { background: rgba(27, 94, 32, 0.08); border-color: rgba(27, 94, 32, 0.25); }
html.dark .rich-content .editor-highlight { background: rgba(212, 168, 67, 0.15); color: #fde68a; }

/* Mobile responsive */
@media (max-width: 640px) {
    .mce-tinymce {
        border-radius: 0.5rem !important;
    }

    .mce-toolbar-grp {
        padding: 2px !important;
    }

    .mce-btn {
        margin: 0 !important;
        padding: 2px 4px !important;
    }

    .collab-avatar {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }
}

/* === LiyuEditor WYSIWYG Container Styles === */
.liyu-editor-wrapper {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
}

.liyu-editor-wrapper .tox-tinymce {
    border-radius: 0.75rem !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 1px 3px 0 rgba(0,0,0,0.05) !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}

.liyu-editor-wrapper .tox-tinymce:focus-within {
    border-color: #1B5E20 !important;
    box-shadow: 0 0 0 3px rgba(27,94,32,0.15) !important;
}

.dark .liyu-editor-wrapper .tox-tinymce {
    border-color: #4b5563 !important;
}

/* Collab Presence Bar */
.liyu-collab-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: linear-gradient(135deg, rgba(27,94,32,0.06) 0%, rgba(212,168,67,0.06) 100%);
    border: 1px solid rgba(27,94,32,0.12);
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
    color: #6b7280;
}

.liyu-collab-bar .collab-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    animation: collabPulse 2s infinite;
}

.liyu-collab-bar .collab-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    color: white;
}

@keyframes collabPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Editor label styling */
.form-label + .liyu-editor-wrapper,
label + .liyu-editor-wrapper {
    margin-top: 0.5rem;
}

/* Word count badge */
.liyu-wordcount {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.5rem;
    background: #f3f4f6;
    border-radius: 9999px;
    font-size: 0.6875rem;
    color: #6b7280;
}

.dark .liyu-wordcount {
    background: #374151;
    color: #9ca3af;
}

/* Editor toolbar enhancement */
.tox .tox-toolbar__primary {
    background: #fafafa !important;
}

.dark .tox .tox-toolbar__primary {
    background: #1f2937 !important;
}

/* =====================================================
   V2 MODERN FRONTEND ENHANCEMENTS — LIYU JOBS
   Professional Clean Design with Ethiopian Brand
   ===================================================== */

/* ─── Sidebar Smooth Scrollbar ─────────────────────── */
.sidebar-scroll {
    scrollbar-width: thin;
    scrollbar-color: rgba(27, 94, 32, 0.2) transparent;
}
.sidebar-scroll::-webkit-scrollbar { width: 4px; }
.sidebar-scroll::-webkit-scrollbar-track { background: transparent; }
.sidebar-scroll::-webkit-scrollbar-thumb { background: rgba(27, 94, 32, 0.15); border-radius: 4px; }
.sidebar-scroll::-webkit-scrollbar-thumb:hover { background: rgba(27, 94, 32, 0.3); }

/* ─── Sidebar Link Smooth Transitions ──────────────── */
.sidebar-link {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0.5rem;
    padding: 0.625rem 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
    text-decoration: none;
}
.sidebar-link:hover {
    background: rgba(27, 94, 32, 0.08);
    color: var(--ethiopian-green);
    padding-left: 1rem;
}

/* ─── Stat Card Gradient ───────────────────────────── */
.stat-card-gradient {
    background: linear-gradient(135deg, rgba(27, 94, 32, 0.06) 0%, rgba(212, 168, 67, 0.04) 100%);
    border: 1px solid rgba(27, 94, 32, 0.12);
}
.stat-card-gradient:hover {
    border-color: var(--ethiopian-green);
    box-shadow: 0 8px 24px -8px rgba(27, 94, 32, 0.15);
}

/* ─── Enhanced Button Styles ───────────────────────── */
.btn-danger {
    background: #dc2626;
    color: white;
    padding: 0.625rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-danger:hover {
    background: #b91c1c;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.btn-secondary {
    background: #f1f5f9;
    color: #475569;
    padding: 0.625rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid #e2e8f0;
}
.btn-secondary:hover {
    background: #e2e8f0;
    color: #334155;
}

/* ─── Liyu Collab Bar & Wordcount ──────────────────── */
.liyu-collab-bar {
    background: linear-gradient(90deg, rgba(27, 94, 32, 0.08), rgba(212, 168, 67, 0.08));
    border: 1px solid rgba(27, 94, 32, 0.15);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8125rem;
    color: #475569;
}
.liyu-wordcount {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: #94a3b8;
    font-variant-numeric: tabular-nums;
}

/* ─── Data Table Alternating Rows ──────────────────── */
.data-table tr:nth-child(even) td {
    background: #fafbfc;
}
.data-table tr:nth-child(even):hover td {
    background: #f0fdf4;
}

/* ─── Modern Pagination ────────────────────────────── */
.pagination-modern {
    display: flex;
    gap: 0.375rem;
    align-items: center;
}
.pagination-modern .pagination-btn {
    border-radius: 0.75rem;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    min-width: 2.5rem;
    text-align: center;
    border: 1px solid #e5e7eb;
    background: white;
    color: #374151;
    font-weight: 500;
    transition: all 0.2s ease;
}
.pagination-modern .pagination-btn:hover {
    border-color: var(--ethiopian-green);
    color: var(--ethiopian-green);
    background: rgba(27, 94, 32, 0.04);
}
.pagination-modern .pagination-btn.active {
    background: var(--ethiopian-green);
    color: white;
    border-color: var(--ethiopian-green);
    box-shadow: 0 2px 8px rgba(27, 94, 32, 0.25);
}

/* ─── Improved Upload Area ─────────────────────────── */
.upload-area-modern {
    border: 2px dashed #cbd5e1;
    border-radius: 1rem;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: linear-gradient(135deg, rgba(27, 94, 32, 0.02), rgba(212, 168, 67, 0.02));
}
.upload-area-modern:hover,
.upload-area-modern.drag-over {
    border-color: var(--ethiopian-green);
    background: linear-gradient(135deg, rgba(27, 94, 32, 0.05), rgba(212, 168, 67, 0.03));
    box-shadow: 0 0 0 4px rgba(27, 94, 32, 0.06);
}

/* ─── Auth Split Layout ────────────────────────────── */
.auth-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}
@media (max-width: 1023px) {
    .auth-split { grid-template-columns: 1fr; }
    .auth-split-brand { display: none; }
}
.auth-split-brand {
    background:
        linear-gradient(135deg, rgba(13, 59, 15, 0.96), rgba(27, 94, 32, 0.94)),
        linear-gradient(90deg, rgba(212, 168, 67, 0.16), transparent);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}
.auth-split-brand::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 48px 48px;
}
.auth-split-brand::after {
    content: '';
    position: absolute;
    bottom: -8rem;
    right: -8rem;
    width: 24rem;
    height: 24rem;
    border: 3rem solid rgba(212, 168, 67, 0.1);
    border-radius: 9999px;
}
.auth-form-side {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: #fafbfc;
}

/* ─── Pricing Card Gradient Header ─────────────────── */
.pricing-card {
    border-radius: 1.25rem;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: white;
    transition: all 0.3s ease;
}
.pricing-card:hover {
    box-shadow: 0 20px 60px -15px rgba(27, 94, 32, 0.15);
    transform: translateY(-4px);
}
.pricing-card-featured {
    border-color: var(--ethiopian-green);
    box-shadow: 0 8px 32px -8px rgba(27, 94, 32, 0.15);
    position: relative;
}
.pricing-card-header {
    background: linear-gradient(135deg, var(--ethiopian-green-dark), var(--ethiopian-green));
    padding: 2rem;
    color: white;
    text-align: center;
}
.pricing-card-header-gold {
    background: linear-gradient(135deg, var(--ethiopian-gold-dark), var(--ethiopian-gold));
}
.pricing-card-header-light {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    color: #1e293b;
}
.pricing-feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}
.pricing-feature-check {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background: rgba(27, 94, 32, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ─── Legal Page Table of Contents ─────────────────── */
.legal-toc {
    background: linear-gradient(135deg, rgba(27, 94, 32, 0.04), rgba(212, 168, 67, 0.03));
    border: 1px solid rgba(27, 94, 32, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
}
.legal-toc a {
    display: block;
    padding: 0.375rem 0;
    color: #475569;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.15s ease;
}
.legal-toc a:hover {
    color: var(--ethiopian-green);
    padding-left: 0.5rem;
}
.legal-section {
    scroll-margin-top: 5rem;
}

/* ─── Profile Modern Cards ─────────────────────────── */
.profile-sidebar {
    background: white;
    border-radius: 1.25rem;
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.profile-avatar-ring {
    padding: 3px;
    border-radius: 9999px;
    background: linear-gradient(135deg, var(--ethiopian-green), var(--ethiopian-gold));
}
.profile-skill-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    border-radius: 0.625rem;
    background: rgba(27, 94, 32, 0.06);
    color: var(--ethiopian-green);
    font-size: 0.8125rem;
    font-weight: 500;
    border: 1px solid rgba(27, 94, 32, 0.12);
    transition: all 0.15s ease;
}
.profile-skill-tag:hover {
    background: rgba(27, 94, 32, 0.1);
    border-color: rgba(27, 94, 32, 0.2);
}

/* ─── Job Card Enhancements ────────────────────────── */
.job-card-modern {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.25rem;
    transition: all 0.25s ease;
}
.job-card-modern:hover {
    border-color: rgba(27, 94, 32, 0.4);
    box-shadow: 0 12px 32px -12px rgba(27, 94, 32, 0.12);
    transform: translateY(-2px);
}
.job-salary-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.875rem;
    border-radius: 0.625rem;
    background: linear-gradient(135deg, rgba(212, 168, 67, 0.1), rgba(212, 168, 67, 0.05));
    color: var(--ethiopian-gold-dark);
    font-size: 0.8125rem;
    font-weight: 600;
    border: 1px solid rgba(212, 168, 67, 0.2);
}
.job-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}
.job-type-full-time { background: #ecfdf5; color: #065f46; }
.job-type-part-time { background: #eff6ff; color: #1e40af; }
.job-type-contract { background: #fefce8; color: #854d0e; }
.job-type-internship { background: #faf5ff; color: #7e22ce; }
.job-type-remote { background: #f0fdf4; color: #166534; border: 1px solid rgba(22, 101, 52, 0.15); }
.job-type-hybrid { background: #f0f9ff; color: #0369a1; }

/* ─── Filter Panel Enhancement ─────────────────────── */
.filter-panel-modern {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.filter-panel-modern select,
.filter-panel-modern .form-input {
    border-radius: 0.75rem;
    border-color: #e2e8f0;
    padding: 0.625rem 0.875rem;
    font-size: 0.8125rem;
}
.filter-panel-modern select:focus,
.filter-panel-modern .form-input:focus {
    border-color: var(--ethiopian-green);
    box-shadow: 0 0 0 3px rgba(27, 94, 32, 0.08);
}

/* ─── Search Bar Icon Prefix ───────────────────────── */
.search-input-group {
    position: relative;
}
.search-input-group .search-icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    transition: color 0.2s ease;
}
.search-input-group input:focus ~ .search-icon,
.search-input-group input:focus + .search-icon {
    color: var(--ethiopian-green);
}
.search-input-group input {
    padding-left: 2.75rem;
}

/* ─── Dashboard Hero Enhancement ───────────────────── */
.dashboard-hero-modern {
    background:
        linear-gradient(135deg, rgba(13, 59, 15, 0.96), rgba(27, 94, 32, 0.94)),
        linear-gradient(90deg, rgba(212, 168, 67, 0.16), transparent);
    border-radius: 1rem;
    color: white;
    overflow: hidden;
    position: relative;
    padding: 1.75rem;
}
.dashboard-hero-modern::after {
    content: '';
    position: absolute;
    inset: auto -6rem -7rem auto;
    width: 18rem;
    height: 18rem;
    border: 2rem solid rgba(212, 168, 67, 0.12);
    border-radius: 9999px;
}

/* ─── Dark Mode Enhancements for New Components ────── */
html.dark .pricing-card {
    background: #0f172a;
    border-color: #1e293b;
}
html.dark .pricing-card-header-light {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #e2e8f0;
}
html.dark .auth-form-side {
    background: #020617;
}
html.dark .job-card-modern {
    background: #0f172a;
    border-color: #1e293b;
}
html.dark .job-card-modern:hover {
    border-color: rgba(27, 94, 32, 0.5);
    box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.3);
}
html.dark .profile-sidebar {
    background: #0f172a;
    border-color: #1e293b;
}
html.dark .profile-skill-tag {
    background: rgba(27, 94, 32, 0.15);
    color: #6ee7b7;
    border-color: rgba(27, 94, 32, 0.25);
}
html.dark .filter-panel-modern {
    background: #0f172a;
    border-color: #1e293b;
}
html.dark .legal-toc {
    background: rgba(27, 94, 32, 0.08);
    border-color: rgba(27, 94, 32, 0.15);
}
html.dark .legal-toc a {
    color: #94a3b8;
}
html.dark .legal-toc a:hover {
    color: #6ee7b7;
}
html.dark .job-salary-badge {
    background: rgba(212, 168, 67, 0.12);
    color: var(--ethiopian-gold-light);
    border-color: rgba(212, 168, 67, 0.2);
}
html.dark .btn-secondary {
    background: #1e293b;
    color: #94a3b8;
    border-color: #334155;
}
html.dark .btn-secondary:hover {
    background: #334155;
    color: #e2e8f0;
}
html.dark .pagination-modern .pagination-btn {
    background: #0f172a;
    border-color: #1e293b;
    color: #cbd5e1;
}
html.dark .pagination-modern .pagination-btn:hover {
    border-color: var(--ethiopian-green);
    color: #6ee7b7;
    background: rgba(27, 94, 32, 0.08);
}
html.dark .upload-area-modern {
    border-color: #334155;
    background: rgba(15, 23, 42, 0.5);
}
html.dark .upload-area-modern:hover {
    border-color: var(--ethiopian-green);
    background: rgba(27, 94, 32, 0.05);
}
html.dark .stat-card-gradient {
    background: linear-gradient(135deg, rgba(27, 94, 32, 0.1) 0%, rgba(212, 168, 67, 0.06) 100%);
    border-color: rgba(27, 94, 32, 0.2);
}

/* =====================================================
   COMPREHENSIVE DARK MODE OVERRIDES — LIYU JOBS v104
   All missing dark mode support for public-facing pages
   ===================================================== */

/* ─── Public page dark background ──────────────────── */
html.dark .public-page {
    background:
        radial-gradient(circle at top left, rgba(27, 94, 32, 0.12), transparent 30rem),
        linear-gradient(180deg, #0f172a 0%, #020617 42%, #020617 100%);
}

/* ─── Auth split layout dark mode ──────────────────── */
html.dark .auth-form-side {
    background: #020617;
}

/* ─── Form label dark mode ─────────────────────────── */
html.dark .form-label {
    color: #cbd5e1;
}

/* ─── Search panel input dark mode ──────────────────── */
html.dark .search-panel input {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}
html.dark .search-panel input::placeholder {
    color: #64748b;
}
html.dark .search-panel select {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}

/* ─── Section backgrounds with white/gray-50 ────────── */
html.dark .bg-white {
    background-color: #0f172a !important;
}
html.dark .bg-gray-50 {
    background-color: #020617 !important;
}
html.dark .bg-gray-100 {
    background-color: #1e293b !important;
}

/* ─── Colored background cards dark mode ───────────── */
html.dark .bg-green-50 {
    background-color: rgba(27, 94, 32, 0.15) !important;
}
html.dark .bg-blue-50 {
    background-color: rgba(59, 130, 246, 0.12) !important;
}
html.dark .bg-yellow-50 {
    background-color: rgba(212, 168, 67, 0.12) !important;
}
html.dark .bg-purple-50 {
    background-color: rgba(147, 51, 234, 0.12) !important;
}
html.dark .bg-red-50 {
    background-color: rgba(239, 68, 68, 0.12) !important;
}
html.dark .bg-sky-50 {
    background-color: rgba(14, 165, 233, 0.12) !important;
}
html.dark .bg-amber-50 {
    background-color: rgba(217, 119, 6, 0.12) !important;
}

/* ─── Colored text dark mode ────────────────────────── */
html.dark .text-green-600 { color: #4ade80 !important; }
html.dark .text-blue-600 { color: #60a5fa !important; }
html.dark .text-yellow-600 { color: #fbbf24 !important; }
html.dark .text-purple-600 { color: #c084fc !important; }
html.dark .text-red-600 { color: #f87171 !important; }
html.dark .text-sky-500 { color: #38bdf8 !important; }
html.dark .text-sky-600 { color: #38bdf8 !important; }
html.dark .text-amber-700 { color: #fbbf24 !important; }
html.dark .text-blue-700 { color: #60a5fa !important; }

/* ─── Colored border dark mode ─────────────────────── */
html.dark .border-green-100 { border-color: rgba(27, 94, 32, 0.25) !important; }
html.dark .border-yellow-100 { border-color: rgba(212, 168, 67, 0.25) !important; }
html.dark .border-blue-100 { border-color: rgba(59, 130, 246, 0.25) !important; }
html.dark .border-purple-100 { border-color: rgba(147, 51, 234, 0.25) !important; }
html.dark .border-green-200 { border-color: rgba(27, 94, 32, 0.3) !important; }
html.dark .border-red-200 { border-color: rgba(239, 68, 68, 0.3) !important; }

/* ─── Text gray overrides for specific hierarchy ───── */
html.dark .text-gray-950 { color: #f1f5f9 !important; }

/* ─── Apply modal dark mode ────────────────────────── */
html.dark #applyModal .bg-white {
    background-color: #1e293b !important;
}
html.dark #applyModal .bg-gray-100 {
    background-color: #334155 !important;
}
html.dark #applyModal .border-gray-200 {
    border-color: #475569 !important;
}

/* ─── Rich content/prose dark mode ─────────────────── */
html.dark .prose { color: #cbd5e1; }
html.dark .prose h1, html.dark .prose h2, html.dark .prose h3,
html.dark .prose h4, html.dark .prose strong { color: #f1f5f9; }
html.dark .prose a { color: #6ee7b7; }
html.dark .prose ul, html.dark .prose ol { color: #94a3b8; }
html.dark .prose blockquote { color: #94a3b8; border-left-color: #334155; }

/* ─── Job type badges dark mode ─────────────────────── */
html.dark .job-type-full-time { background: rgba(22, 101, 52, 0.2); color: #6ee7b7; }
html.dark .job-type-part-time { background: rgba(30, 64, 175, 0.2); color: #93bbfd; }
html.dark .job-type-contract { background: rgba(133, 77, 14, 0.2); color: #fde68a; }
html.dark .job-type-internship { background: rgba(126, 34, 206, 0.2); color: #d8b4fe; }
html.dark .job-type-remote { background: rgba(22, 101, 52, 0.2); color: #6ee7b7; border-color: rgba(22, 101, 52, 0.3); }
html.dark .job-type-hybrid { background: rgba(3, 105, 161, 0.2); color: #7dd3fc; }

/* ─── Job salary badge dark mode ────────────────────── */
html.dark .job-salary-badge {
    background: rgba(27, 94, 32, 0.12);
    color: #6ee7b7;
    border-color: rgba(27, 94, 32, 0.2);
}

/* ─── Stat card gradient dark mode ──────────────────── */
html.dark .stat-card-gradient {
    background: #0f172a;
    border: 1px solid #1e293b;
}

/* ─── Success/Error/Warning message dark mode ────────── */
html.dark .bg-green-50 { background-color: rgba(27, 94, 32, 0.15) !important; }
html.dark .bg-red-50 { background-color: rgba(239, 68, 68, 0.12) !important; }
html.dark .border-green-200 { border-color: rgba(27, 94, 32, 0.3) !important; }
html.dark .text-green-800 { color: #6ee7b7 !important; }
html.dark .text-red-800 { color: #fca5a5 !important; }

/* ─── Checkbox dark mode ────────────────────────────── */
html.dark input[type="checkbox"] {
    background-color: #1e293b;
    border-color: #475569;
}
html.dark input[type="checkbox"]:checked {
    background-color: #1B5E20;
    border-color: #1B5E20;
}

/* ─── Breadcrumb dark mode ──────────────────────────── */
html.dark nav[aria-label="Breadcrumb"] li,
html.dark nav[aria-label="Breadcrumb"] a {
    color: #94a3b8;
}
html.dark nav[aria-label="Breadcrumb"] svg {
    color: #64748b;
}

/* ─── Profile skill tag dark mode ───────────────────── */
html.dark .profile-skill-tag {
    background: rgba(27, 94, 32, 0.15);
    color: #6ee7b7;
    border-color: rgba(27, 94, 32, 0.25);
}
html.dark .profile-skill-tag:hover {
    background: rgba(27, 94, 32, 0.25);
    border-color: rgba(27, 94, 32, 0.4);
}

/* ─── Social link icons dark mode ────────────────────── */
html.dark .bg-blue-50.text-blue-600,
html.dark .bg-sky-50.text-sky-500,
html.dark .bg-blue-50.text-blue-700,
html.dark .bg-sky-50.text-sky-600 {
    background-color: rgba(59, 130, 246, 0.12) !important;
}
html.dark a[class*="bg-blue-50"]:hover,
html.dark a[class*="bg-sky-50"]:hover {
    background-color: rgba(59, 130, 246, 0.2) !important;
}

/* ─── Pricing card header light variant dark mode ───── */
html.dark .pricing-card-header-light {
    background: linear-gradient(135deg, #1e293b, #0f172a);
}

/* ─── Divider line dark mode ────────────────────────── */
html.dark .border-t { border-top-color: #1e293b; }
html.dark .divide-gray-50 > * + * { border-top-color: #1e293b; }
html.dark .divide-gray-100 > * + * { border-top-color: #1e293b; }

/* ─── Custom gradient background dark mode ──────────── */
html.dark .bg-gradient-to-br.from-ethiopian-green\/5 {
    background: linear-gradient(to bottom right, rgba(27, 94, 32, 0.1), rgba(212, 168, 67, 0.05));
}
html.dark .border-green-100 {
    border-color: rgba(27, 94, 32, 0.2) !important;
}

/* ─── Smooth transitions for theme switch ───────────── */
html.dark * {
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.15s ease;
}

/* ============================================================
   LIYU JOBS — v1.6 additions (SEO, accessibility, modern UI)
   ============================================================ */

/* ─── Skeleton loaders (for job cards, search, etc.) ─── */
.skeleton {
    background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 0.5rem;
    color: transparent !important;
}
html.dark .skeleton {
    background: linear-gradient(90deg, #1f2937 25%, #374151 50%, #1f2937 75%);
    background-size: 200% 100%;
}
@keyframes skeleton-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.skeleton-text { display: inline-block; height: 0.875rem; }
.skeleton-block { display: block; height: 1rem; }

/* ─── Toast notifications ─── */
.toast-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
    max-width: calc(100% - 3rem);
}
.toast {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    min-width: 280px;
    max-width: 380px;
    transform: translateX(110%);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
    pointer-events: auto;
}
html.dark .toast {
    background: #1f2937;
    border-color: #374151;
    color: #f3f4f6;
}
.toast.show { transform: translateX(0); opacity: 1; }
.toast-success { border-left: 4px solid #10b981; }
.toast-error   { border-left: 4px solid #ef4444; }
.toast-warning { border-left: 4px solid #f59e0b; }
.toast-info    { border-left: 4px solid #3b82f6; }
.toast-icon {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
}
.toast-success .toast-icon { color: #10b981; }
.toast-error   .toast-icon { color: #ef4444; }
.toast-warning .toast-icon { color: #f59e0b; }
.toast-info    .toast-icon { color: #3b82f6; }
.toast-content { flex: 1; min-width: 0; }
.toast-title { font-weight: 600; font-size: 0.875rem; }
.toast-message { font-size: 0.8125rem; color: #6b7280; margin-top: 0.125rem; }
html.dark .toast-message { color: #9ca3af; }
.toast-close {
    flex-shrink: 0;
    color: #9ca3af;
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 0;
    width: 1.25rem;
    height: 1.25rem;
}
.toast-close:hover { color: #4b5563; }

/* ─── Breadcrumb component ─── */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0;
    font-size: 0.875rem;
}
.breadcrumb a { color: #6b7280; text-decoration: none; transition: color 0.15s; }
.breadcrumb a:hover { color: #1B5E20; }
html.dark .breadcrumb a { color: #9ca3af; }
html.dark .breadcrumb a:hover { color: #6ee7b7; }
.breadcrumb-separator { color: #d1d5db; }
html.dark .breadcrumb-separator { color: #4b5563; }
.breadcrumb-current { color: #111827; font-weight: 500; }
html.dark .breadcrumb-current { color: #f3f4f6; }

/* ─── FAQ accordion ─── */
.faq-item summary { list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ''; }
.faq-item[open] { background: #ffffff; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04); }
html.dark .faq-item[open] { background: #1f2937; }

/* ─── Share buttons (job detail) ─── */
.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    background: #f3f4f6;
    color: #4b5563;
    transition: all 0.15s;
    border: 1px solid transparent;
}
.share-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}
.share-btn-whatsapp:hover  { background: #25D366; color: white; }
.share-btn-telegram:hover  { background: #0088cc; color: white; }
.share-btn-linkedin:hover  { background: #0A66C2; color: white; }
.share-btn-twitter:hover   { background: #000000; color: white; }
.share-btn-facebook:hover  { background: #1877F2; color: white; }
.share-btn-email:hover     { background: #6b7280; color: white; }
.share-btn-copy:hover      { background: #1B5E20; color: white; }
.share-btn svg { width: 1.125rem; height: 1.125rem; }
html.dark .share-btn { background: #374151; color: #d1d5db; }

/* ─── Filter chip (jobs page) ─── */
.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    background: #ecfdf5;
    color: #1B5E20;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s;
}
.filter-chip:hover { background: #d1fae5; }
html.dark .filter-chip { background: rgba(27, 94, 32, 0.15); color: #6ee7b7; }
html.dark .filter-chip:hover { background: rgba(27, 94, 32, 0.25); }

/* ─── Print-friendly job detail ─── */
@media print {
    .ethiopian-flag-bar,
    nav,
    #mainNav,
    .floating-register-alert,
    .toast-container,
    .share-buttons,
    .btn-primary,
    .btn-outline,
    .btn-gold,
    footer,
    #floatingRegisterAlert,
    #tgNotificationCard,
    .ad-sidebar,
    .ad-footer,
    .ad-in-content {
        display: none !important;
    }
    body { background: white !important; color: black !important; }
    main { padding: 0 !important; }
    .public-page { background: white !important; }
    a { color: black !important; text-decoration: underline; }
    .bg-white, .soft-card { box-shadow: none !important; border: 1px solid #ddd !important; }
}

/* ─── Smooth page enter animation ─── */
.page-enter { animation: page-fade-in 0.25s ease-out; }
@keyframes page-fade-in {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── Focus styles (accessibility) ─── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid #1B5E20;
    outline-offset: 2px;
    border-radius: 4px;
}
html.dark a:focus-visible,
html.dark button:focus-visible,
html.dark input:focus-visible,
html.dark select:focus-visible,
html.dark textarea:focus-visible,
html.dark [tabindex]:focus-visible {
    outline-color: #6ee7b7;
}

/* ─── Skip-to-content link (a11y) ─── */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    padding: 0.5rem 1rem;
    background: #1B5E20;
    color: white;
    z-index: 9999;
    border-radius: 0 0 0.5rem 0;
    transition: top 0.2s;
}
.skip-link:focus { top: 0; color: white; }

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ─── Job-card hover lift ─── */
.job-list-card,
.job-card-modern,
.company-list-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.job-list-card:hover,
.job-card-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

/* ─── Sticky mobile filter bar ─── */
@media (max-width: 1023px) {
    .filter-panel-modern {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 50;
        max-height: 70vh;
        overflow-y: auto;
        background: white;
        border-top-left-radius: 1rem;
        border-top-right-radius: 1rem;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
        padding: 1rem;
        transform: translateY(100%);
        transition: transform 0.3s ease;
    }
    .filter-panel-modern.open { transform: translateY(0); }
    html.dark .filter-panel-modern { background: #1f2937; }
}

/* ─── Newsletter signup (footer) ─── */
.newsletter-input {
    flex: 1;
    min-width: 0;
    padding: 0.625rem 0.875rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 0.875rem;
}
.newsletter-input::placeholder { color: rgba(255, 255, 255, 0.5); }
.newsletter-input:focus {
    outline: none;
    border-color: #D4A843;
    background: rgba(255, 255, 255, 0.08);
}

/* ─── Stat card gradient ─── */
.stat-card-gradient {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 1px solid #d1fae5;
}
html.dark .stat-card-gradient {
    background: linear-gradient(135deg, rgba(27, 94, 32, 0.1) 0%, rgba(27, 94, 32, 0.05) 100%);
    border-color: rgba(27, 94, 32, 0.2);
}

/* ============================================================
   LIYU JOBS — v1.7 enhancements (Live Search, Quick View, modern UI)
   ============================================================ */

/* ─── Glass-morphism hero search panel ─── */
.glass-panel {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
html.dark .glass-panel {
    background: rgba(31, 41, 55, 0.85);
    border-color: rgba(75, 85, 99, 0.3);
}

/* ─── Live search dropdown (instant results) ─── */
.live-search-wrapper {
    position: relative;
}
.live-search-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.03);
    z-index: 100;
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.live-search-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
html.dark .live-search-dropdown {
    background: #1f2937;
    border-color: #374151;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5);
}
.live-search-section {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
}
html.dark .live-search-section { border-bottom-color: #374151; }
.live-search-section:last-child { border-bottom: 0; }
.live-search-section-title {
    padding: 0.5rem 1rem 0.25rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.live-search-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    cursor: pointer;
    transition: background-color 0.1s;
    text-decoration: none;
    color: inherit;
    border-left: 3px solid transparent;
}
.live-search-item:hover,
.live-search-item.active {
    background: #f0fdf4;
    border-left-color: #1B5E20;
}
html.dark .live-search-item:hover,
html.dark .live-search-item.active {
    background: rgba(27, 94, 32, 0.15);
}
.live-search-item-logo {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    overflow: hidden;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 700;
    color: #6b7280;
    font-size: 0.875rem;
}
html.dark .live-search-item-logo { background: #374151; color: #d1d5db; }
.live-search-item-logo img { width: 100%; height: 100%; object-fit: cover; }
.live-search-item-body { flex: 1; min-width: 0; }
.live-search-item-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
html.dark .live-search-item-title { color: #f3f4f6; }
.live-search-item-meta {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.125rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
html.dark .live-search-item-meta { color: #9ca3af; }
.live-search-item-highlight {
    background: #fef3c7;
    color: #92400e;
    border-radius: 0.25rem;
    padding: 0 0.25rem;
    font-weight: 600;
}
html.dark .live-search-item-highlight {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}
.live-search-item-badge {
    flex-shrink: 0;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    background: #ecfdf5;
    color: #1B5E20;
}
html.dark .live-search-item-badge { background: rgba(27, 94, 32, 0.2); color: #6ee7b7; }
.live-search-footer {
    padding: 0.625rem 1rem;
    border-top: 1px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9fafb;
    border-radius: 0 0 1rem 1rem;
}
html.dark .live-search-footer { background: #111827; border-top-color: #374151; }
.live-search-footer a {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1B5E20;
    text-decoration: none;
}
.live-search-footer a:hover { text-decoration: underline; }
html.dark .live-search-footer a { color: #6ee7b7; }
.live-search-empty {
    padding: 2rem 1rem;
    text-align: center;
    color: #9ca3af;
    font-size: 0.875rem;
}
.live-search-loading {
    padding: 1.5rem 1rem;
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.live-search-loading::before {
    content: '';
    width: 1rem;
    height: 1rem;
    border: 2px solid #e5e7eb;
    border-top-color: #1B5E20;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.live-search-suggestion {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    margin: 0.125rem;
    background: #f3f4f6;
    border-radius: 9999px;
    font-size: 0.8125rem;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.15s;
    border: 1px solid transparent;
}
.live-search-suggestion:hover {
    background: #ecfdf5;
    color: #1B5E20;
    border-color: #1B5E20;
}
html.dark .live-search-suggestion { background: #374151; color: #d1d5db; }
html.dark .live-search-suggestion:hover { background: rgba(27, 94, 32, 0.2); color: #6ee7b7; }

/* ─── Quick View modal ─── */
.quick-view-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}
.quick-view-overlay.open { opacity: 1; visibility: visible; }
.quick-view-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: calc(100% - 2rem);
    max-width: 720px;
    max-height: 90vh;
    background: #ffffff;
    border-radius: 1.5rem;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.4);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.quick-view-modal.open {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}
html.dark .quick-view-modal { background: #1f2937; }
.quick-view-header {
    padding: 1.5rem;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    position: relative;
}
html.dark .quick-view-header { border-bottom-color: #374151; }
.quick-view-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    background: #f3f4f6;
    color: #6b7280;
    border: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}
.quick-view-close:hover { background: #e5e7eb; color: #111827; }
html.dark .quick-view-close { background: #374151; color: #d1d5db; }
html.dark .quick-view-close:hover { background: #4b5563; color: #f3f4f6; }
.quick-view-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}
.quick-view-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #f3f4f6;
    display: flex;
    gap: 0.75rem;
    background: #f9fafb;
}
html.dark .quick-view-footer { background: #111827; border-top-color: #374151; }
.quick-view-skeleton {
    padding: 1.5rem;
}
.quick-view-skeleton > * {
    background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
}

/* ─── Job card v2 (modern, glassmorphism-inspired) ─── */
.job-card-v2 {
    position: relative;
    display: block;
    background: #ffffff;
    border: 1px solid #f3f4f6;
    border-radius: 1rem;
    padding: 1.25rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}
.job-card-v2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1B5E20, #D4A843);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.job-card-v2:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.1);
    border-color: #d1fae5;
}
.job-card-v2:hover::before { transform: scaleX(1); }
html.dark .job-card-v2 {
    background: #1f2937;
    border-color: #374151;
}
html.dark .job-card-v2:hover {
    border-color: rgba(27, 94, 32, 0.4);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.5);
}
.job-card-v2-featured {
    background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
    border-color: #fde68a;
}
html.dark .job-card-v2-featured {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, #1f2937 100%);
    border-color: rgba(245, 158, 11, 0.3);
}
.job-card-v2-header {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    margin-bottom: 0.875rem;
}
.job-card-v2-logo {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: #f3f4f6;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 700;
    color: #6b7280;
    font-size: 1rem;
}
html.dark .job-card-v2-logo { background: #374151; color: #d1d5db; }
.job-card-v2-logo img { width: 100%; height: 100%; object-fit: cover; }
.job-card-v2-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.375rem;
    opacity: 0;
    transition: opacity 0.2s;
}
.job-card-v2:hover .job-card-v2-actions { opacity: 1; }
.job-card-v2-action-btn {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    text-decoration: none;
}
.job-card-v2-action-btn:hover {
    background: #ecfdf5;
    border-color: #1B5E20;
    color: #1B5E20;
    transform: scale(1.1);
}
.job-card-v2-action-btn.saved {
    background: #1B5E20;
    border-color: #1B5E20;
    color: white;
}
html.dark .job-card-v2-action-btn { background: #374151; border-color: #4b5563; color: #d1d5db; }
html.dark .job-card-v2-action-btn:hover { background: rgba(27, 94, 32, 0.2); border-color: #6ee7b7; color: #6ee7b7; }

/* ─── Skeleton loaders for job cards ─── */
.job-card-skeleton {
    background: #ffffff;
    border: 1px solid #f3f4f6;
    border-radius: 1rem;
    padding: 1.25rem;
}
html.dark .job-card-skeleton { background: #1f2937; border-color: #374151; }
.job-card-skeleton .sk-line {
    background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 0.375rem;
    height: 0.875rem;
}
html.dark .job-card-skeleton .sk-line {
    background: linear-gradient(90deg, #1f2937 25%, #374151 50%, #1f2937 75%);
    background-size: 200% 100%;
}
.job-card-skeleton .sk-logo {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
}
html.dark .job-card-skeleton .sk-logo {
    background: linear-gradient(90deg, #1f2937 25%, #374151 50%, #1f2937 75%);
    background-size: 200% 100%;
}

/* ─── Grid / list view toggle ─── */
.view-toggle {
    display: inline-flex;
    background: #f3f4f6;
    border-radius: 0.5rem;
    padding: 0.25rem;
    gap: 0.125rem;
}
html.dark .view-toggle { background: #374151; }
.view-toggle-btn {
    padding: 0.375rem 0.625rem;
    border-radius: 0.375rem;
    background: transparent;
    border: 0;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 500;
}
.view-toggle-btn.active {
    background: #ffffff;
    color: #1B5E20;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
html.dark .view-toggle-btn.active { background: #1f2937; color: #6ee7b7; }
html.dark .view-toggle-btn { color: #9ca3af; }

/* List view layout (compact horizontal) */
.jobs-grid.list-view {
    grid-template-columns: 1fr !important;
}
.jobs-grid.list-view .job-card-v2 {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
}
.jobs-grid.list-view .job-card-v2-header {
    flex: 1;
    margin-bottom: 0;
}
.jobs-grid.list-view .job-card-v2-meta {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-shrink: 0;
}
@media (max-width: 768px) {
    .jobs-grid.list-view .job-card-v2 {
        flex-direction: column;
        align-items: stretch;
    }
    .jobs-grid.list-view .job-card-v2-meta {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

/* ─── Reading progress bar (job detail) ─── */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #1B5E20, #D4A843);
    z-index: 9997;
    transition: width 0.1s ease;
    width: 0;
}

/* ─── Trending jobs carousel ─── */
.carousel {
    position: relative;
    overflow: hidden;
}
.carousel-track {
    display: flex;
    gap: 1rem;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}
.carousel-slide {
    flex: 0 0 calc(33.333% - 0.667rem);
    min-width: 0;
}
@media (max-width: 1024px) { .carousel-slide { flex-basis: calc(50% - 0.5rem); } }
@media (max-width: 640px)  { .carousel-slide { flex-basis: 100%; } }
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: all 0.15s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.carousel-btn:hover { background: #1B5E20; color: white; border-color: #1B5E20; }
.carousel-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.carousel-btn.prev { left: -1.25rem; }
.carousel-btn.next { right: -1.25rem; }
@media (max-width: 768px) {
    .carousel-btn.prev { left: 0; }
    .carousel-btn.next { right: 0; }
}
html.dark .carousel-btn { background: #1f2937; border-color: #4b5563; color: #d1d5db; }
html.dark .carousel-btn:hover { background: #1B5E20; color: white; border-color: #1B5E20; }

/* ─── Stat pill (in cards) ─── */
.stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 500;
    background: #f3f4f6;
    color: #6b7280;
}
html.dark .stat-pill { background: #374151; color: #9ca3af; }
.stat-pill svg { width: 0.75rem; height: 0.75rem; }

/* ─── Filter chip toggle (instant AJAX) ─── */
.filter-chip-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    border-radius: 9999px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
}
.filter-chip-toggle:hover {
    border-color: #1B5E20;
    color: #1B5E20;
    background: #f0fdf4;
}
.filter-chip-toggle.active {
    background: #1B5E20;
    border-color: #1B5E20;
    color: white;
}
html.dark .filter-chip-toggle { background: #1f2937; border-color: #4b5563; color: #d1d5db; }
html.dark .filter-chip-toggle:hover { border-color: #6ee7b7; color: #6ee7b7; background: rgba(27, 94, 32, 0.15); }
html.dark .filter-chip-toggle.active { background: #1B5E20; border-color: #1B5E20; color: white; }

/* ─── Quick-apply floating bar (job detail, mobile) ─── */
.quick-apply-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 0.75rem 1rem;
    z-index: 50;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    display: flex;
    gap: 0.75rem;
    align-items: center;
}
.quick-apply-bar.show { transform: translateY(0); }
html.dark .quick-apply-bar { background: #1f2937; border-top-color: #374151; }
@media (min-width: 1024px) { .quick-apply-bar { display: none; } }

/* ─── Pulse animation for "live" badges ─── */
.pulse-dot {
    position: relative;
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    background: #10b981;
    border-radius: 50%;
}
.pulse-dot::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: #10b981;
    border-radius: 50%;
    opacity: 0.4;
    animation: pulse-ring 1.8s ease-out infinite;
}
@keyframes pulse-ring {
    0%   { transform: scale(0.5); opacity: 0.6; }
    80%, 100% { transform: scale(2); opacity: 0; }
}

/* ─── Animated gradient background for hero ─── */
.animated-gradient-bg {
    background: linear-gradient(-45deg, #0D3B0F, #1B5E20, #2E7D32, #1B5E20);
    background-size: 400% 400%;
    animation: gradient-shift 18s ease infinite;
}
@keyframes gradient-shift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ─── Fade-in-up entrance animation ─── */
.fade-in-up {
    animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
.fade-in-up:nth-child(1) { animation-delay: 0.05s; }
.fade-in-up:nth-child(2) { animation-delay: 0.10s; }
.fade-in-up:nth-child(3) { animation-delay: 0.15s; }
.fade-in-up:nth-child(4) { animation-delay: 0.20s; }
.fade-in-up:nth-child(5) { animation-delay: 0.25s; }
.fade-in-up:nth-child(6) { animation-delay: 0.30s; }
.fade-in-up:nth-child(7) { animation-delay: 0.35s; }
.fade-in-up:nth-child(8) { animation-delay: 0.40s; }

/* ─── Infinite scroll sentinel ─── */
.scroll-sentinel {
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 0.875rem;
}
.scroll-sentinel::before {
    content: '';
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #e5e7eb;
    border-top-color: #1B5E20;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-right: 0.5rem;
}
.scroll-sentinel.done::before { display: none; }
.scroll-sentinel.done::after { content: '✓ You\'ve seen all jobs'; }

/* ─── Trending badge ─── */
.trending-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    background: linear-gradient(90deg, #f59e0b, #ef4444);
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.trending-badge svg { width: 0.625rem; height: 0.625rem; }
