@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;700&display=swap');

:root {
    --primary-color: #1a73e8;
    --dark-bg: #1e293b;
    --light-bg: #f1f5f9;
    --sidebar-width: 260px;
}

body {
    font-family: 'Tajawal', sans-serif !important;
    background-color: var(--light-bg);
    margin: 0;
    direction: rtl;
}

.wrapper { display: flex; width: 100%; }

/* القائمة الجانبية للحاسوب */
#sidebar {
    min-width: var(--sidebar-width);
    max-width: var(--sidebar-width);
    background: var(--dark-bg);
    color: #fff;
    min-height: 100vh;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

#sidebar .sidebar-header { padding: 25px 20px; background: #0f172a; text-align: center; }

#sidebar ul li a {
    padding: 12px 20px;
    display: block;
    color: #cbd5e0;
    text-decoration: none;
    transition: 0.3s;
    border-right: 4px solid transparent;
}

#sidebar ul li a:hover {
    background: rgba(255,255,255,0.1);
    border-right-color: var(--primary-color);
}

.section-title {
    padding: 15px 20px 5px 20px;
    font-size: 0.8em;
    color: #64748b;
    font-weight: bold;
    text-transform: uppercase;
}

#content {
    width: calc(100% - var(--sidebar-width));
    margin-right: var(--sidebar-width);
    padding: 20px;
    transition: all 0.3s ease;
}

/* تعديلات الجوال (أقل من 992px) */
@media (max-width: 992px) {
    #sidebar { 
        right: -260px; /* إخفاء تماماً خارج الشاشة من اليمين */
    }
    
    #sidebar.active {
        right: 0; /* إظهار القائمة عند الضغط */
    }

    #content { 
        width: 100%; 
        margin-right: 0; 
    }
}

.page-header {
    background: linear-gradient(135deg, var(--primary-color), #0f172a);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.card-custom {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    background: #fff;
    padding: 20px;
}