:root {
    --gold: #C7B02F;
    --gray: #6E6E6E;
    --gold-light: #F5F1D9;
    --gold-dark: #9A8824;
}

@font-face {
    font-family: 'AirArabia';
    src: url('/assets/fonts/AirArabia.woff2') format('woff2'), url('/assets/fonts/AirArabia.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    background: linear-gradient(135deg, #f5f5f5, #ffffff) !important;
    font-family: 'AirArabia', 'Segoe UI', sans-serif;
}

.login-container {
    min-height: 100vh;
}

.login-card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.left-side {
    background: linear-gradient(135deg, var(--gold), #e6d46a);
    color: white;
    position: relative;
}

.left-side::before {
    content: "";
    position: absolute;
    width: 200%;
    height: 200%;
    background: url('https://www.transparenttextures.com/patterns/arabesque.png');
    opacity: 0.08;
}

.brand-title {
    font-size: 2.5rem;
    font-weight: bold;
}

.login-btn {
    background: linear-gradient(135deg, var(--gold), #e6d46a) !important;
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 12px 0;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 18px rgba(199, 176, 47, 0.3);
    letter-spacing: 0.5px;
}

.login-btn:hover {
    background: linear-gradient(135deg, #b89f29, #d4c24a);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(199, 176, 47, 0.5);
}

.login-btn {
    background: var(--gold);
    border: none;
    transition: 0.3s;
}

.login-btn:hover {
    background: #b89f29;
    transform: translateY(-2px);
}

.form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 0.2rem rgba(199, 176, 47, 0.25);
}

.link-gold {
    color: var(--gold);
    text-decoration: none;
}

.link-gold:hover {
    text-decoration: underline;
}

.brand-title {
    letter-spacing: 1px;
}

/* Navbar Styling */
.navbar-custom {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    /* Modern frosted glass effect */
    border-bottom: 1px solid #f0f0f0;
    padding: 0.8rem 0;
    transition: all 0.3s ease;
}

.navbar-brand img {
    height: 45px;
    /* Adjust based on your logo proportions */
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.02);
}

/* Modern Logout Button */
.btn-logout-modern {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #fff1f1;
    /* Very light red hint */
    color: #dc3545;
    border: 1px solid #ffdee2;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.25s ease;
    cursor: pointer;
    text-decoration: none;
}

.btn-logout-modern i {
    font-size: 0.85rem;
}

.btn-logout-modern:hover {
    background-color: #dc3545;
    color: #ffffff;
    border-color: #dc3545;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
    transform: translateY(-1px);
}

.btn-logout-modern:active {
    transform: translateY(0);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .navbar-nav {
        padding: 1rem 0;
    }

    .btn-logout-modern {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }
}

.text-gray {
    color: var(--gray);
}

/* Header Section */
.dashboard-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.dashboard-header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.dashboard-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 1.75rem;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid var(--gold);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: var(--gold-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.stat-icon i {
    font-size: 1.5rem;
    color: var(--gold);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
}

.stat-subtext {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-top: 0.5rem;
}

/* Filters Section */
.filters-section {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.search-box {
    position: relative;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
}

.search-box input {
    padding-left: 45px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    height: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 0.2rem rgba(199, 176, 47, 0.25);
}

.filter-btn {
    height: 50px;
    border-radius: 10px;
    border: 2px solid #e9ecef;
    background: white;
    color: var(--gray);
    font-weight: 500;
    transition: all 0.3s ease;
}

/* Course Cards */
.course-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 2px solid transparent;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--gold);
}

.course-header {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    padding: 2rem 1.5rem;
    color: white;
    position: relative;
}

.course-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.course-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.course-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.course-duration {
    font-size: 0.9rem;
    opacity: 0.9;
}

.course-body {
    padding: 1.5rem;
}

.course-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f8f9fa;
}

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

.course-stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold);
    display: block;
}

.course-stat-label {
    font-size: 0.75rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
}

.enrollment-list {
    max-height: 200px;
    overflow-y: auto;
}

.enrollment-item {
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    background: #f8f9fa;
    transition: all 0.2s ease;
}

.enrollment-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.enrollment-meta {
    font-size: 0.85rem;
    color: var(--gray);
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-complete {
    background: #d4edda;
    color: #155724;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-failed {
    background: #f8d7da;
    color: #721c24;
}

.view-all-btn {
    width: 100%;
    background: var(--gold);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.view-all-btn:hover {
    background: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(199, 176, 47, 0.3);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.empty-state i {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: var(--gray);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #adb5bd;
}

/* Custom Scrollbar */
.enrollment-list::-webkit-scrollbar {
    width: 6px;
}

.enrollment-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.enrollment-list::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 10px;
}

.enrollment-list::-webkit-scrollbar-thumb:hover {
    background: var(--gold-dark);
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-header h1 {
        font-size: 1.8rem;
    }

    .stat-value {
        font-size: 2rem;
    }

    .course-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .course-stat-value {
        font-size: 1.4rem;
    }
}

.alert-custom {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-left: 5px solid;
}

/* Success - Gold Theme */
.alert-success-gold {
    background-color: #fffdf2;
    border-color: #C7B02F;
}

.alert-success-gold .alert-icon {
    color: #C7B02F;
}

.alert-success-gold strong {
    color: #8a7a20;
}

/* Error - Grey Theme */
.alert-error-grey {
    background-color: #f8f8f8;
    border-color: #6E6E6E;
}

.alert-error-grey .alert-icon {
    color: #6E6E6E;
}

.alert-error-grey strong {
    color: #333;
}

.alert-icon {
    font-size: 1.5rem;
    margin-right: 15px;
}

.alert-content p {
    margin: 0;
    font-size: 0.95rem;
    color: #666;
}

.btn-close-custom {
    position: absolute;
    right: 15px;
    top: 10px;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #999;
}