/* المتغيرات الأساسية (CSS Variables) - سيتم تحديثها برمجياً من Directus */
:root {
    --primary-color: #4F46E5;
    --bg-color: #F9FAFB;
    --text-color: #111827;
    --header-bg: #FFFFFF;
    --font-family: system-ui, -apple-system, sans-serif;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hidden {
    display: none !important;
}

/* شريط التنبيهات */
#announcement-bar {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 10px;
    font-weight: bold;
    font-size: 14px;
}

/* الترويسة */
.site-header {
    background-color: var(--header-bg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    max-height: 50px;
    width: auto;
}

.header-actions {
    display: flex;
    gap: 10px;
}

/* الأزرار */
.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: opacity 0.2s;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}

/* التبويبة المنزلقة (السلة) */
.drawer {
    position: fixed;
    top: 0;
    right: -400px; /* مخفية في اليمين */
    width: 100%;
    max-width: 380px;
    height: 100vh;
    background-color: white;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: right 0.3s ease-in-out;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.drawer.open {
    right: 0;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 999;
    display: none;
}

.overlay.open {
    display: block;
}