/* تخصيص نظام المطبخ: اللون الأساسي برتقالي */
:root {
    --primary: #FF8C00;
    --primary-light: rgba(255, 140, 0, 0.08);
    --primary-dark: #FF7700;
}

/* لمس: ارتفاع أدنى للأزرار والحقول */
.btn, .form-input, select.form-input {
    min-height: 48px;
}

/* زر فتح الشريط على الموبايل */
.sidebar-toggle-btn {
    display: none;
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1001;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: var(--text-primary);
    border: none;
    border-radius: 0.5rem;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
}
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}
.sidebar-overlay.active { display: block; }
@media (max-width: 768px) {
    .sidebar-toggle-btn { display: flex !important; }
}

/* زر الخروج في الشريط العلوي: عرض محتوى فقط، لا يتمدد */
.topbar .topbar-actions .btn,
.topbar-logout-btn {
    width: auto !important;
    min-width: auto;
    flex: 0 0 auto !important;
}

/* تنسيق footer الشريط الجانبي: الاسم والصلاحية */
.sidebar-footer .sidebar-user-name {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}
.sidebar-footer .sidebar-user-role {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
}
.sidebar-footer .sidebar-logout {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: background 0.2s;
}
.sidebar-footer .sidebar-logout:hover {
    background: var(--primary-light);
}
.sidebar-footer .sidebar-logout i {
    width: 18px;
    color: var(--text-secondary);
}

/* شريط التمرير: أنحف وأقل إزعاجاً - يظهر بلون خفيف عند الحاجة */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(128, 128, 128, 0.35) transparent;
}
*::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
*::-webkit-scrollbar-track {
    background: transparent;
}
*::-webkit-scrollbar-thumb {
    background: rgba(128, 128, 128, 0.35);
    border-radius: 3px;
}
*::-webkit-scrollbar-thumb:hover {
    background: rgba(128, 128, 128, 0.5);
}
*::-webkit-scrollbar-thumb:active {
    background: rgba(128, 128, 128, 0.6);
}
