:root {
    /* Brand Colors derived from the uploaded image */
    --primary: #Cca453;
    /* Logo Gold/Brown */
    --primary-hover: #b08d45;
    --accent: #3E4E3C;
    /* Logo Dark Green */
    --accent-hover: #2E3B2D;

    /* Backgrounds & Surfaces */
    --bg-body: #F8F9FB;
    /* Very light gray/white for clean look */
    --card-bg: #FFFFFF;
    --text-main: #1F2937;
    --text-muted: #6B7280;
    --border-color: #E5E7EB;

    /* Functional */
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    margin: 0;
    font-family: 'Tajawal', 'Outfit', sans-serif;
    background-color: var(--bg-body);
    background-image:
        radial-gradient(at 0% 0%, rgba(204, 164, 83, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(62, 78, 60, 0.05) 0px, transparent 50%);
    color: var(--text-main);
    min-height: 100vh;
    direction: rtl;
    /* Ensure RTL for Arabic */
    line-height: 1.6;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--primary);
    margin-top: 0;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: color 0.2s;
}

/* Layout */
.container {
    width: 90%;
    max-width: 1200px;
    /* Wider container for dashboard feel */
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Cards (Replacing Glassmorphism with Clean Modern Cards) */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

/* Buttons */
.btn,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    /* Slightly squarer for institutional feel */
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.btn:hover,
button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: white;
}

.btn-secondary {
    background-color: white;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-secondary:hover {
    background-color: #f0fdf4;
    color: var(--primary);
}

/* Inputs */
input,
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-main);
    background-color: #F9FAFB;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    margin-bottom: 1rem;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(62, 92, 70, 0.1);
}

/* Tables */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 1rem;
}

th {
    background-color: #F3F4F6;
    color: var(--text-muted);
    font-weight: 600;
    text-align: right;
    padding: 16px;
    border-bottom: 2px solid var(--border-color);
}

td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
}

tr:last-child td {
    border-bottom: none;
}

/* Custom Elements */
.radio-card {
    border: 1px solid var(--border-color);
    background-color: white;
    border-radius: 10px;
    padding: 1rem;
    transition: all 0.2s;
}

.radio-card:hover {
    border-color: var(--primary);
    background-color: #F8FAF9;
}

input[type="radio"]:checked+span {
    color: var(--primary);
    font-weight: bold;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-right: 4px solid transparent;
}

.alert-success {
    background-color: #ECFDF5;
    color: #065F46;
    border-right-color: #10B981;
}

.alert-danger {
    background-color: #FEF2F2;
    color: #991B1B;
    border-right-color: #EF4444;
}

/* Utilities */
.text-gold {
    color: var(--accent);
}

.text-primary {
    color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 0 0.5rem;
    }

    .glass-card {
        padding: 1.5rem;
    }
}