@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #198754;
    /* Green */
    --primary-glow: rgba(25, 135, 84, 0.4);
    --golden: #d4af37;
    /* Golden */
    --secondary: #0ea5e9;
    --dark-bg: #0f172a;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --card-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --hover-shadow: 0 25px 50px -12px rgba(25, 135, 84, 0.15);
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: #f8fafc;
    color: #1e293b;
    overflow-x: hidden;
}

/* Glassmorphism Navbar - Updated to Transparent/Green */
.navbar {
    background: transparent !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar.scrolled {
    background: #198754 !important;
    /* Industrial Green */
    padding: 1rem 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar-brand {
    font-weight: 800;
    letter-spacing: -1px;
    color: #fff !important;
    font-size: 1.8rem;
    /* Slightly larger brand text */
    transition: 0.3s;
}

.navbar-logo {
    height: 55px;
    /* Increased from 40px */
    width: auto;
    margin-right: 15px;
    filter: brightness(0) invert(1);
    /* Ensure logo image is white */
}

/* Golden Button Style */
.btn-golden {
    background: #d4af37;
    /* Solid Legacy Gold */
    color: #fff !important;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    transition: none;
    /* Disable transitions */
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    font-size: 0.85rem;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-golden:hover,
.btn-golden:active,
.btn-golden:focus {
    background: #d4af37 !important;
    transform: none !important;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3) !important;
    filter: none !important;
    color: #fff !important;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    transition: 0.3s;
}

.nav-link:hover {
    color: #fff !important;
}

/* Vibrant Hero Section - Updated with Arabic Corporate Image & Overlay */
.hero-wrapper {
    position: relative;
    padding: 160px 0 200px;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url('https://images.unsplash.com/photo-1497366216548-37526070297c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    overflow: hidden;
    color: #fff;
}

.hero-wrapper::before {
    display: none;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    color: #fff;
}

.text-gradient-gold {
    background: linear-gradient(to right,
            #d4af37 0%,
            #f1c40f 25%,
            #fff9e6 50%,
            #f1c40f 75%,
            #d4af37 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: goldShimmer 3s linear infinite;
    display: inline-block;
}

@keyframes goldShimmer {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

.hero-wrapper .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Search Bar - Modern Floating Style */
.search-container {
    background: #fff;
    padding: 12px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    max-width: 850px;
    margin: 40px auto 0;
    border: 1px solid rgba(226, 232, 240, 0.5);
}

.search-input-group {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-right: 1px solid #e2e8f0;
}

.search-input-group:last-of-type {
    border-right: none;
}

.search-input-group input {
    border: none;
    padding: 15px 10px;
    width: 100%;
    outline: none;
    font-weight: 500;
}

/* Premium Job Cards */
.job-card {
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.6);
    border-radius: 24px;
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
}

.job-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--hover-shadow);
    border-color: rgba(99, 102, 241, 0.3);
}

.company-logo-ui {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary);
    font-size: 28px;
}

.job-tag {
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.tag-blue {
    background: #e0e7ff;
    color: #4338ca;
}

.tag-green {
    background: #dcfce7;
    color: #15803d;
}

.tag-purple {
    background: #f3e8ff;
    color: #7e22ce;
}

/* Buttons */
.btn-modern {
    background: var(--primary);
    color: #fff;
    padding: 14px 28px;
    border-radius: 14px;
    font-weight: 600;
    transition: 0.3s;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-modern:hover {
    background: #4f46e5;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
    color: #fff;
    transform: translateY(-2px);
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.float-anim {
    animation: float 6s ease-in-out infinite;
}

/* Floating Back to Home Button */
.floating-back-home {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    background: #198754;
    color: #fff !important;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(25, 135, 84, 0.4);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid #d4af37;
}

.floating-back-home:hover {
    transform: scale(1.1) rotate(5deg);
    background: #d4af37;
    border-color: #198754;
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.4);
}

.floating-back-home .material-symbols-rounded {
    font-size: 28px;
}

/* Dashboard Layout */
.sidebar-modern {
    width: 280px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: #fff;
    border-right: 1px solid #e2e8f0;
    padding: 2rem 1.25rem;
    display: flex;
    flex-direction: column;
    z-index: 1050;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-admin {
    background: #1e293b;
    border-right: 1px solid #334155;
    color: #cbd5e1;
}

.sidebar-admin .nav-item-mod {
    color: #94a3b8;
}

.sidebar-admin .nav-item-mod:hover,
.sidebar-admin .nav-item-mod.active {
    background: #334155;
    color: #fff !important;
}

.sidebar-admin .sidebar-toggle-btn {
    color: #94a3b8;
}

.sidebar-admin .sidebar-toggle-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-collapsed .sidebar-modern {
    width: 85px;
    padding: 2rem 0.75rem;
}

.main-dash {
    margin-left: 280px;
    padding: 3rem;
    background: #f8fafc;
    min-height: 100vh;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-collapsed .main-dash {
    margin-left: 85px;
}

.nav-item-mod {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 16px;
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar-collapsed .nav-item-mod {
    justify-content: center;
    padding: 14px 0;
    gap: 0;
}

.nav-item-mod:hover,
.nav-item-mod.active {
    background: #198754;
    color: #fff !important;
}

.sidebar-collapsed .nav-item-mod .nav-text {
    display: none;
}

.sidebar-collapsed .navbar-brand {
    justify-content: center;
}

.sidebar-collapsed .navbar-logo {
    margin-right: 0;
}

.toggle-sidebar {
    background: transparent;
    border: none;
    color: #1e293b;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 12px;
    transition: 0.2s;
}

.toggle-sidebar:hover {
    background: rgba(0, 0, 0, 0.05);
}

.sidebar-toggle-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #64748b;
    padding: 5px;
    border-radius: 8px;
    transition: all 0.2s;
    z-index: 100;
}

.sidebar-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #198754;
}

.sidebar-collapsed .sidebar-toggle-btn {
    right: 50%;
    transform: translateX(50%);
    top: 15px;
}

.sidebar-collapsed .navbar-logo {
    display: none !important;
}

.sidebar-collapsed .navbar-brand {
    justify-content: center;
    margin-bottom: 2rem !important;
    height: 50px;
    /* Preserve space */
}

@media (max-width: 991.98px) {
    .sidebar-modern {
        transform: translateX(-100%);
    }

    .sidebar-open .sidebar-modern {
        transform: translateX(0);
        width: 280px;
    }

    .main-dash {
        margin-left: 0 !important;
        padding: 2rem 1rem;
    }

    .sidebar-collapsed .main-dash {
        margin-left: 0 !important;
    }
}

/* Premium Full Color Stat Cards */
.stat-card-full {
    border: none;
    border-radius: 24px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s;
    color: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stat-card-full:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.stat-card-full .stat-icon-bg {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 120px;
    opacity: 0.1;
    transform: rotate(15deg);
}

.stat-card-full .stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 5px;
    line-height: 1;
}

.stat-card-full .stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bg-gradient-primary-dark {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

.bg-gradient-success-village {
    background: linear-gradient(135deg, #198754 0%, #20c997 100%);
}

.bg-gradient-gold-premium {
    background: linear-gradient(135deg, #d4af37 0%, #f1c40f 100%);
}

.bg-gradient-info-sky {
    background: linear-gradient(135deg, #0dcaf0 0%, #3dffdc 100%);
}

/* Refined Table Styles */
.table-hover tbody tr:hover {
    background-color: rgba(25, 135, 84, 0.03) !important;
    transform: scale(1.002);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    position: relative;
    z-index: 10;
}

.table td {
    vertical-align: middle;
}

/* Premium Interview Card Styles */
.interview-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s ease;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.interview-card:hover {
    background: #fff;
    transform: translateX(5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border-color: #d4af37;
    border-left: 4px solid #d4af37;
}

.interview-card .date-box {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 8px;
    min-width: 60px;
    text-align: center;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.interview-card .date-day {
    display: block;
    font-weight: 800;
    font-size: 1.25rem;
    color: #198754;
    line-height: 1;
    margin-bottom: 2px;
}

.interview-card .date-month {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.5px;
}