* { box-sizing: border-box; }
body {
    font-family: 'Tajawal', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f4f7f9;
    color: #333;
    direction: rtl;
}
a { text-decoration: none; color: inherit; }

/* Login */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1E3A5F, #00B4D8);
}
.login-card {
    background: rgba(255,255,255,0.96);
    padding: 50px;
    border-radius: 24px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.25);
    text-align: center;
    animation: fadeInUp 0.8s ease;
}
.login-card h1 { color: #1E3A5F; margin-bottom: 5px; }
.tagline { color: #00B4D8; margin-bottom: 30px; font-size: 14px; }
.footer-brand { margin-top: 25px; color: #777; font-size: 12px; }
.form-group { margin-bottom: 18px; text-align: right; }
.form-group label { display: block; margin-bottom: 6px; color: #1E3A5F; font-weight: bold; }
.form-group input, .form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.2s;
}
.btn-primary { background: #00B4D8; color: #fff; }
.btn-primary:hover { background: #1E3A5F; }
.btn-success { background: #10B981; color: #fff; }
.btn-danger { background: #EF4444; color: #fff; }
.alert { padding: 12px; border-radius: 8px; margin-bottom: 20px; }
.alert-danger { background: #fee2e2; color: #991b1b; }
.alert-success { background: #d1fae5; color: #065f46; }

/* Dashboard */
.dashboard-wrapper { display: flex; min-height: 100vh; }
.sidebar {
    width: 260px;
    background: #1E3A5F;
    color: #fff;
    position: fixed;
    top: 0; bottom: 0; right: 0;
    overflow-y: auto;
    padding: 25px 15px;
}
.brand { text-align: center; margin-bottom: 35px; }
.brand h2 { margin: 0; color: #fff; }
.brand small { color: #00B4D8; font-size: 12px; }
.sidebar nav a {
    display: block;
    padding: 12px 16px;
    margin-bottom: 6px;
    border-radius: 10px;
    color: #d1d5db;
    transition: 0.2s;
}
.sidebar nav a:hover, .sidebar nav a.active { background: #00B4D8; color: #fff; }
.main {
    flex: 1;
    margin-right: 260px;
    padding: 25px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 15px 25px;
    border-radius: 14px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}
.bell { position: relative; }
.badge {
    background: #EF4444;
    color: #fff;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 11px;
    position: absolute;
    top: -8px;
    right: -8px;
}
.content { flex: 1; }
.dashboard-footer {
    text-align: center;
    padding: 20px;
    color: #777;
    font-size: 13px;
}

/* Cards and tables */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}
.stat-card {
    background: #fff;
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    text-align: center;
}
.stat-card h3 { font-size: 32px; margin: 0; color: #1E3A5F; }
.stat-card p { color: #777; margin: 5px 0 0; }
.card {
    background: #fff;
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    margin-bottom: 20px;
}
.card h2 { margin-top: 0; color: #1E3A5F; }
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}
.table th, .table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    text-align: center;
}
.table th { background: #f9fafb; color: #1E3A5F; }
.table tr:hover { background: #f9fafb; }
.status-pending { color: #F59E0B; }
.status-approved { color: #10B981; }
.status-rejected { color: #EF4444; }

.welcome-card {
    background: linear-gradient(135deg, #1E3A5F 0%, #2c3e50 100%);
    color: #fff;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    margin-bottom: 25px;
    text-align: center;
    animation: fadeInUp 0.5s ease;
}
.welcome-card h2 { margin: 0 0 10px; color: #fff; }
.welcome-card p { margin: 0; color: #e2e8f0; }

.stat-card { text-decoration: none; display: block; transition: transform 0.2s ease, box-shadow 0.2s ease; position: relative; overflow: hidden; }
.stat-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,0.1); }
.stat-icon { width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.stat-blue .stat-icon { background: rgba(52,152,219,0.12); color: #3498db; }
.stat-orange .stat-icon { background: rgba(243,156,18,0.12); color: #f39c12; }
.stat-purple .stat-icon { background: rgba(155,89,182,0.12); color: #9b59b6; }
.stat-green .stat-icon { background: rgba(39,174,96,0.12); color: #27ae60; }

.quick-actions { display: flex; gap: 12px; margin-bottom: 25px; flex-wrap: wrap; }
.quick-actions a { text-decoration: none; }

.recent-card { margin-bottom: 25px; }
.recent-table th { background: #f1f5f9; color: #1E3A5F; }
.recent-table td { padding: 12px; text-align: center; }

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