:root {
  /* Al Diwan Official Palette */
  --primary-color: #0b3d91; /* Deep Blue */
  --secondary-color: #d4af37; /* Gold */
  --bg-color: #f4f6b010; /* Soft off-white */
  --text-dark: #333333;
  --text-light: #ffffff;
  --sidebar-bg: #ffffff;
  --border-color: #e0e0e0;
  
  /* Utilities */
  --transition-speed: 0.3s;
  --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

body {
    font-family: 'Cairo', sans-serif; /* A beautiful Arabic font */
    background-color: var(--bg-color);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
}

/* Sidebar Styling */
.sidebar {
    height: 100vh;
    background-color: var(--sidebar-bg);
    border-left: 1px solid var(--border-color); /* Left border for RTL */
    box-shadow: -2px 0 5px rgba(0,0,0,0.05);
    position: fixed;
    top: 0;
    right: 0;
    width: 250px;
    padding-top: 20px;
    z-index: 1000;
}

.sidebar .brand {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.sidebar .brand img {
    height: 80px;
}

.sidebar .brand h4 {
    color: var(--primary-color);
    font-weight: 700;
    margin-top: 10px;
}

.sidebar a {
    padding: 15px 25px;
    text-decoration: none;
    font-size: 16px;
    color: var(--text-dark);
    display: block;
    transition: all var(--transition-speed);
    font-weight: 600;
}

.sidebar a:hover, .sidebar a.active {
    background-color: var(--primary-color);
    color: var(--text-light);
    border-radius: 0 25px 25px 0;
}

/* Main Content Styling */
.main-content {
    margin-right: 250px; /* Offset for sidebar in RTL */
    padding: 20px;
}

/* Navbar */
.top-navbar {
    background-color: #ffffff;
    padding: 10px 20px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

/* Cards */
.dashboard-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--box-shadow);
    border-top: 4px solid var(--primary-color);
    transition: transform var(--transition-speed);
}

.dashboard-card:hover {
    transform: translateY(-5px);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-primary:hover {
    background-color: #082d6b;
    border-color: #082d6b;
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--text-dark);
}
.btn-secondary:hover {
    background-color: #b8982f;
    border-color: #b8982f;
    color: var(--text-dark);
}

/* Forms */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(11, 61, 145, 0.25);
}

/* Auth Page */
.auth-wrapper {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, #051c42 100%);
}

.auth-card {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.auth-card img {
    height: 100px;
    margin-bottom: 20px;
}

.auth-card h3 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 20px;
}
