/* 1. إعدادات المتغيرات والأرضية */
:root { 
    --primary: #2c3e50; 
    --accent: #3498db; 
    --bg: #f4f7f6; 
}

* { box-sizing: border-box; }

body { 
    margin: 0; 
    display: flex; 
    font-family: 'Segoe UI', sans-serif; 
    background: var(--bg); 
    min-height: 100vh; 
}

/* 2. القائمة الجانبية (Sidebar) */
.sidebar { 
    width: 250px; 
    background: var(--primary); 
    color: white; 
    padding: 20px; 
    flex-shrink: 0;
}
.sidebar .logo { font-size: 24px; font-weight: bold; text-align: center; margin-bottom: 30px; }
.sidebar ul { list-style: none; padding: 0; }
.sidebar a { 
    display: block; 
    color: #bdc3c7; 
    padding: 15px; 
    text-decoration: none; 
    border-radius: 5px; 
    transition: 0.3s; 
}
.sidebar a:hover { background: #34495e; color: white; }

/* 3. المحتوى الرئيسي */
.main-content { 
    flex: 1; 
    padding: 40px; 
    overflow-y: auto;
}
.card { 
    background: white; 
    padding: 30px; 
    border-radius: 15px; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.05); 
}

/* 4. الأزرار */
.btn { 
    background: var(--accent); 
    color: white; 
    padding: 12px 25px; 
    border: none; 
    border-radius: 8px; 
    cursor: pointer; 
    text-decoration: none;
    display: inline-block;
    transition: 0.3s;
}
.btn:hover { opacity: 0.9; transform: scale(1.02); }

/* 5. الفوتر */
.main-footer { 
    text-align: center; 
    padding: 20px; 
    background: #e9ecef; 
    color: #7f8c8d; 
    margin-top: 20px; 
}

/* 6. التجاوب مع الموبايل (Responsive) */
@media (max-width: 768px) {
    body { flex-direction: column; }
    .sidebar { width: 100%; height: auto; }
    .main-content { padding: 20px; }
}
