:root {
    /* Primary Colors - Academic Palette */
    --israa-blue: #0885C8;
    --israa-navy: #1A365D;
    --israa-purple: #805AD5;
    --israa-gold: #D4AF37; /* Academic Accent */
    
    /* Backgrounds */
    --bg-body: #f8f9fa;
    --bg-surface: #ffffff;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--israa-navy) 0%, var(--israa-blue) 100%);
    --gradient-overlay: linear-gradient(to bottom, rgba(26, 54, 93, 0.95), rgba(8, 133, 200, 0.9));

    /* Typography */
    --font-primary: 'Cairo', 'Poppins', sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.12);
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-body);
    color: var(--israa-navy);
    direction: rtl; 
    text-align: right;
    min-height: 100vh;
}

/* --- Navigation: Academic Top Bar --- */
.navbar-academic {
    background: var(--bg-surface);
    box-shadow: var(--shadow-sm);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1030;
    border-bottom: 3px solid var(--israa-gold);
}

.navbar-academic .nav-link {
    color: var(--israa-navy);
    font-weight: 600;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.navbar-academic .nav-link:hover,
.navbar-academic .nav-link.active {
    background-color: rgba(8, 133, 200, 0.08);
    color: var(--israa-blue);
}

.navbar-academic .navbar-brand img {
    height: 45px;
}

/* --- Hero Card: Welcome Section --- */
.hero-card {
    background: var(--gradient-primary);
    border-radius: 20px;
    padding: 3rem;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    filter: blur(50px);
}

.hero-card-title {
    font-weight: 800;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.hero-card-subtitle {
    opacity: 0.9;
    font-size: 1.1rem;
    font-weight: 400;
}

/* --- Premium Stat Cards --- */
.stat-card-premium {
    background: var(--bg-surface);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.stat-card-premium:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(8, 133, 200, 0.2);
}

.stat-card-premium .icon-box {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.icon-box.primary { background: rgba(8, 133, 200, 0.1); color: var(--israa-blue); }
.icon-box.success { background: rgba(16, 185, 129, 0.1); color: #10B981; }
.icon-box.warning { background: rgba(245, 158, 11, 0.1); color: #F59E0B; }
.icon-box.navy { background: rgba(26, 54, 93, 0.1); color: var(--israa-navy); }

/* --- Data Grid Modern --- */
.table-modern {
    background: var(--bg-surface);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.05);
    margin-bottom: 0;
}

.table-modern thead {
    background-color: #f8f9fa;
}

.table-modern th {
    color: var(--israa-navy);
    font-weight: 700;
    border-bottom: 2px solid rgba(0,0,0,0.05);
    padding: 1.25rem 1rem;
}

.table-modern td {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    vertical-align: middle;
    color: #4B5563;
    font-weight: 500;
}

.table-modern tr:last-child td {
    border-bottom: none;
}

.table-modern tr:hover td {
    background-color: rgba(8, 133, 200, 0.02);
}

/* --- Login Page Stylings --- */
.login-split-wrapper {
    min-height: 100vh;
    display: flex;
}

.login-brand-side {
    flex: 1;
    background: var(--gradient-primary);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 2rem;
    overflow: hidden;
}

.login-brand-side::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 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='%23ffffff' 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");
    opacity: 0.3;
}

.login-form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    position: relative;
}

.login-container {
    width: 100%;
    max-width: 450px;
    padding: 3rem;
    border-radius: 20px;
}

/* Floating Form Inputs */
.form-floating > .form-control {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background-color: #f9fafb;
    height: 3.5rem;
}

.form-floating > .form-control:focus {
    border-color: var(--israa-blue);
    background-color: white;
    box-shadow: 0 0 0 4px rgba(8, 133, 200, 0.1);
}

.form-floating > label {
    padding-right: 1.25rem; /* Adjust for RTL */
    right: 0;
    left: auto;
}

.btn-login {
    background: var(--gradient-primary);
    border: none;
    height: 3.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(8, 133, 200, 0.3);
    transition: all 0.3s;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(8, 133, 200, 0.4);
    background: linear-gradient(135deg, #1A365D 0%, #066a9e 100%);
}
