/* ============================================================
   1. GOOGLE FONTS IMPORT (Tajawal)
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&display=swap');

/* ============================================================
   2. GLOBAL STYLES
   ============================================================ */
body {
    background-color: #f0f2f5;
    font-family: 'Tajawal', sans-serif !important; /* Force Tajawal Font */
    direction: rtl;
    text-align: right;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: #2c3e50;
}

a {
    text-decoration: none;
}

/* ============================================================
   3. SIDEBAR STYLES (DASHBOARD)
   ============================================================ */
.sidebar {
    min-height: 100vh;
    background: #1e293b; /* Dark Blue Gray */
    color: white;
    width: 260px;
    position: fixed;
    top: 0;
    right: 0;
    transition: all 0.3s ease-in-out;
    z-index: 1000;
}

.sidebar-header {
    padding: 25px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h4 {
    color: white;
    font-weight: 800;
    margin: 0;
}

.sidebar-menu {
    margin-top: 20px;
}

.sidebar-menu a {
    color: #cbd5e1;
    display: block;
    padding: 15px 25px;
    font-size: 16px;
    border-right: 4px solid transparent;
    transition: 0.2s;
}

.sidebar-menu a:hover, 
.sidebar-menu a.active {
    background: #334155;
    color: #fff;
    border-right-color: #3b82f6; /* Blue Highlight */
}

.sidebar-menu a i {
    margin-left: 10px;
    width: 20px;
    text-align: center;
}

/* ============================================================
   4. MAIN CONTENT AREA
   ============================================================ */
.main-content {
    margin-right: 260px; /* Same width as sidebar */
    padding: 30px;
    transition: all 0.3s ease-in-out;
}

/* Responsive: Hide sidebar on small screens */
@media (max-width: 768px) {
    .sidebar {
        right: -260px;
    }
    .main-content {
        margin-right: 0;
    }
}

/* ============================================================
   5. CARDS & STATS (DASHBOARD)
   ============================================================ */
.stat-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-right: 5px solid #3b82f6;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card.primary { border-color: #0d6efd; }
.stat-card.success { border-color: #198754; }
.stat-card.warning { border-color: #ffc107; }

.stat-card h3 {
    font-size: 28px;
    margin: 10px 0;
    color: #2c3e50;
}

.stat-card p {
    color: #64748b;
    margin: 0;
}

/* ============================================================
   6. LOGIN PAGE STYLES
   ============================================================ */
.login-body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: 100%;
    max-width: 400px;
    padding: 40px;
    border-radius: 20px;
    background: white;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.login-title {
    font-weight: 800;
    color: #0d6efd;
    margin-bottom: 10px;
}

/* ============================================================
   7. GENERAL COMPONENTS (Tables, Buttons)
   ============================================================ */
.table-custom {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.table-custom thead {
    background-color: #f8f9fa;
}

.table-custom th {
    font-weight: 700;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}