/* ============================================================
   نظام إدارة مواعيد وفعاليات المدير العام
   Modern Executive Design System - RTL
   ✅ v2.2: دعم كامل للثيمات + ودجت الأيام العالمية
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&display=swap');

:root {
    --primary: #0a2558;
    --primary-light: #1e3a8a;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --success: #059669;
    --warning: #d97706;
    --info: #0284c7;
    
    --bg-main: #f8fafc;
    --surface: #ffffff;
    --surface-glass: rgba(255, 255, 255, 0.85);
    
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    
    --border-subtle: #e2e8f0;
    --border-strong: #cbd5e1;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 25px -3px rgba(10, 37, 88, 0.08), 0 4px 6px -4px rgba(10, 37, 88, 0.04);
    --shadow-hover: 0 20px 30px -10px rgba(10, 37, 88, 0.14);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-pill: 9999px;
    
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    
    --gold: #c5a059;
    --gold-dark: #a88339;
}

body.dark-mode {
    --bg-main: #0b1329;
    --surface: #131f3d;
    --surface-glass: rgba(19, 31, 61, 0.85);
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --text-light: #64748b;
    --border-subtle: #1e293b;
    --border-strong: #334155;
    --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.35);
    --shadow-hover: 0 20px 30px -10px rgba(0, 0, 0, 0.5);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    direction: rtl;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.navbar-modern {
    background: rgba(10, 22, 40, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 0.85rem 0;
    position: sticky;
    top: 0;
    z-index: 1050;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.2rem;
    color: #ffffff !important;
    letter-spacing: -0.3px;
}

.navbar-brand img {
    height: 42px;
    width: auto;
    object-fit: contain;
}

.nav-link {
    color: rgba(255, 255, 255, 0.75) !important;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 1.1rem !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-link:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08);
}

.theme-toggle-nav {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-pill);
    width: 38px;
    height: 38px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.theme-toggle-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(20deg);
}

.user-badge {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    padding: 0.3rem 0.9rem;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-badge .avatar-sm {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, #2563eb, #1e3a8a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
}

.hero-banner {
    background: linear-gradient(135deg, #07152d 0%, #0a2558 50%, #1e3a8a 100%);
    color: #ffffff;
    padding: 3rem 0 4rem;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    position: relative;
    overflow: hidden;
    margin-bottom: 2.5rem;
    box-shadow: 0 10px 30px rgba(10, 37, 88, 0.15);
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-banner .hero-title {
    font-size: 2.1rem;
    font-weight: 900;
    margin-bottom: 0.4rem;
    letter-spacing: -0.5px;
}

.hero-banner .hero-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
    font-weight: 400;
}

.hero-date-chip {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
}

.widget-card {
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.widget-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(37, 99, 235, 0.3);
}

.widget-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    transition: var(--transition);
}

.widget-card:hover .widget-icon {
    transform: scale(1.08);
}

.widget-icon.success { background: #ecfdf5; color: #059669; }
.widget-icon.warning { background: #fffbeb; color: #d97706; }
.widget-icon.primary { background: #eff6ff; color: #2563eb; }
.widget-icon.info { background: #f0f9ff; color: #0284c7; }

body.dark-mode .widget-icon.success { background: rgba(5, 150, 105, 0.15); color: #34d399; }
body.dark-mode .widget-icon.warning { background: rgba(217, 119, 6, 0.15); color: #fbbf24; }
body.dark-mode .widget-icon.primary { background: rgba(37, 99, 235, 0.15); color: #60a5fa; }
body.dark-mode .widget-icon.info { background: rgba(2, 132, 199, 0.15); color: #38bdf8; }

.widget-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.4rem;
}

.widget-desc {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.55;
    margin-bottom: 1.25rem;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
    text-decoration: none;
    justify-content: center;
}

.btn-action.success {
    background: #ecfdf5;
    color: #059669;
}
.btn-action.success:hover {
    background: #059669;
    color: #ffffff;
}

.btn-action.warning {
    background: #fffbeb;
    color: #d97706;
}
.btn-action.warning:hover {
    background: #d97706;
    color: #ffffff;
}

body.dark-mode .btn-action.success {
    background: rgba(5, 150, 105, 0.2);
    color: #34d399;
}
body.dark-mode .btn-action.success:hover {
    background: #059669;
    color: #ffffff;
}

body.dark-mode .btn-action.warning {
    background: rgba(217, 119, 6, 0.2);
    color: #fbbf24;
}
body.dark-mode .btn-action.warning:hover {
    background: #d97706;
    color: #ffffff;
}

.contact-select {
    border: 1.5px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0.65rem 0.9rem;
    width: 100%;
    font-size: 0.85rem;
    font-weight: 600;
    background-color: var(--bg-main);
    color: var(--text-main);
    transition: var(--transition);
    appearance: auto;
}

.contact-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.contact-result-card {
    background: var(--bg-main);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0.9rem;
    margin-top: 0.9rem;
}

.contact-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.4rem 0;
    border-bottom: 1px dashed var(--border-subtle);
    font-size: 0.85rem;
}

.contact-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.contact-label {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 500;
}

.contact-val {
    font-weight: 700;
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-copy {
    border: none;
    background: rgba(37, 99, 235, 0.1);
    color: var(--accent);
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-copy:hover {
    background: var(--accent);
    color: #ffffff;
}

.btn-copy.copied {
    background: var(--success);
    color: #ffffff;
}

.quick-input {
    border: 1.5px solid var(--border-subtle);
    background: var(--bg-main);
    color: var(--text-main);
    border-radius: var(--radius-sm);
    padding: 0.45rem 0.65rem;
    font-size: 0.82rem;
    width: 100%;
    transition: var(--transition);
}

.quick-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.btn-submit-quick {
    background: linear-gradient(135deg, #0a2558 0%, #1e3a8a 100%);
    border: none;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.55rem 1rem;
    border-radius: var(--radius-sm);
    width: 100%;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit-quick:hover {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 37, 88, 0.2);
}

.ad-card {
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.ad-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.ad-card img {
    width: 100%;
    object-fit: cover;
}

.ad-card-body {
    padding: 1rem 1.25rem;
}

.ad-card-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.3rem;
}

.ad-card-text {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-modern {
    background: #07152d;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.65);
    padding: 2rem 0;
    margin-top: auto;
}

.footer-link {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
}

.footer-link:hover {
    color: #ffffff;
}

@media (max-width: 991px) {
    .hero-banner {
        padding: 2.25rem 0 3rem;
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    }
    .hero-banner .hero-title {
        font-size: 1.6rem;
    }
}

/* SIDEBAR MANAGER */
.sm-hero {
    background: linear-gradient(135deg, #0a2558, #1a3a7a);
    color: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.sm-hero .stat-box {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.sm-hero .stat-box .num {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
}

.sm-hero .stat-box .lbl {
    font-size: 0.72rem;
    opacity: 0.85;
    margin-top: 2px;
}

.top-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.section-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    border-right: 4px solid #0a2558;
    transition: all 0.25s ease;
}

body.dark-mode .section-card {
    background: #1e293b;
    border-color: #334155;
}

.section-header {
    background: linear-gradient(90deg, #f8fafc, #f1f5f9);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #e2e8f0;
}

body.dark-mode .section-header {
    background: #0f172a;
    border-color: #334155;
}

.drag-handle {
    cursor: grab;
    color: #94a3b8;
    font-size: 16px;
    padding: 4px;
    border-radius: 4px;
}

.drag-handle:hover {
    color: #0284c7;
    background: rgba(2, 132, 199, 0.1);
}

.drag-handle:active {
    cursor: grabbing;
}

.order-badge {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #fff;
    font-weight: 700;
    font-size: 0.75rem;
    min-width: 34px;
    padding: 4px 8px;
    border-radius: 6px;
    text-align: center;
    font-family: 'Courier New', monospace;
    cursor: help;
    flex-shrink: 0;
}

.order-badge.section-order {
    background: linear-gradient(135deg, #0a2558, #1a3a7a);
}

.collapse-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #0a2558;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s;
    flex-shrink: 0;
}

.collapse-btn:hover {
    background: #0a2558;
    color: #fff;
    border-color: #0a2558;
}

.collapse-btn i {
    transition: transform 0.3s;
    font-size: 0.85rem;
}

.section-card.collapsed .collapse-btn i {
    transform: rotate(-90deg);
}

body.dark-mode .collapse-btn {
    background: #0f172a;
    border-color: #334155;
    color: #93c5fd;
}

body.dark-mode .collapse-btn:hover {
    background: #1d4ed8;
    color: #fff;
}

.minimize-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #7c3aed;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s;
    flex-shrink: 0;
}

.minimize-btn:hover {
    background: #7c3aed;
    color: #fff;
    border-color: #7c3aed;
}

.minimize-btn i {
    transition: transform 0.3s;
    font-size: 0.8rem;
}

body.dark-mode .minimize-btn {
    background: #0f172a;
    border-color: #334155;
    color: #c4b5fd;
}

body.dark-mode .minimize-btn:hover {
    background: #7c3aed;
    color: #fff;
}

.section-card.collapsed .items-container {
    display: none !important;
}

.section-card.collapsed {
    border-right-width: 6px;
}

.section-card.collapsed .section-header {
    cursor: grab;
}

.section-card.collapsed .section-header:active {
    cursor: grabbing;
}

.collapsed-info {
    display: none;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 2px 10px;
    background: rgba(100, 116, 139, 0.08);
    border-radius: 50px;
    margin-right: auto;
}

.section-card.collapsed .collapsed-info {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.section-card.minimized {
    border-right-width: 8px;
    background: linear-gradient(90deg, #f8fafc, #eef2ff);
}

body.dark-mode .section-card.minimized {
    background: linear-gradient(90deg, #0f172a, #1a2537);
    border-right-color: #7c3aed;
}

.section-card.minimized .section-header {
    padding: 6px 12px;
    gap: 6px;
    cursor: grab;
}

.section-card.minimized .section-header:active {
    cursor: grabbing;
}

.section-card.minimized .section-header > *:not(.minimize-btn):not(.drag-handle):not(.order-badge):not(.min-label):not(.min-count) {
    display: none !important;
}

.section-card.minimized .items-container {
    display: none !important;
}

.section-card.minimized .collapse-btn {
    display: none !important;
}

.section-card.minimized .section-header .badge {
    display: none !important;
}

.section-card.minimized.inactive-section {
    opacity: 0.6;
}

.min-label {
    display: none;
    font-weight: 700;
    font-size: 0.85rem;
    color: #0a2558;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
}

body.dark-mode .min-label {
    color: #93c5fd;
}

.section-card.minimized .min-label {
    display: inline-block;
}

.min-count {
    display: none;
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    background: rgba(100, 116, 139, 0.12);
    padding: 2px 10px;
    border-radius: 50px;
    white-space: nowrap;
}

body.dark-mode .min-count {
    background: rgba(196, 181, 253, 0.15);
    color: #c4b5fd;
}

.section-card.minimized .min-count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.item-card {
    background: #fff;
    border-radius: 10px;
    padding: 10px 12px;
    margin: 8px 12px;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

body.dark-mode .item-card {
    background: #1a2537;
    border-color: #334155;
}

.item-card.sub-item {
    margin-right: 40px;
    background: #f8fafc;
    border-right: 3px solid #7c3aed;
}

body.dark-mode .item-card.sub-item {
    background: #162033;
}

.item-card.inactive {
    opacity: 0.5;
}

.item-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: linear-gradient(135deg, #0a2558, #1a3a7a);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.item-icon.sub-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    font-size: 0.85rem;
}

.item-actions {
    display: flex;
    gap: 5px;
}

.item-actions a {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    text-decoration: none;
}

.item-actions .btn-toggle-on {
    background: #d1fae5;
    color: #059669;
}

.item-actions .btn-toggle-off {
    background: #fee2e2;
    color: #dc2626;
}

.item-actions .btn-delete {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.save-btn-fixed {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 6px 25px rgba(245, 158, 11, 0.4);
}

.dirty-indicator {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #F59E0B;
    color: #fff;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 9999;
}

.dirty-indicator.show {
    opacity: 1;
}

.sortable-ghost {
    opacity: 0.4;
    background: rgba(2, 132, 199, 0.1) !important;
    border: 2px dashed #0284c7 !important;
}

/* SIDEBAR PRINCIPAL MINIMIZE */
.sidebar-minimize-btn {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: rgba(255, 255, 255, 0.85);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
    margin-left: 4px;
}

.sidebar-minimize-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    transform: scale(1.06);
}

.sidebar-minimize-btn i {
    transition: transform 0.35s ease;
}

@media (max-width: 992px) {
    .sidebar-minimize-btn {
        display: none !important;
    }
}

body.sidebar-mini {
    --sidebar-width: var(--sidebar-width-mini, 78px);
}

body.sidebar-mini .admin-sidebar {
    overflow-x: hidden;
    overflow-y: auto;
    box-shadow: -2px 0 12px rgba(0, 0, 0, 0.04);
}

body.sidebar-mini .admin-sidebar .menu-item > a span,
body.sidebar-mini .admin-sidebar .menu-item > .menu-item-wrapper > a span,
body.sidebar-mini .admin-sidebar .menu-label,
body.sidebar-mini .admin-sidebar .submenu,
body.sidebar-mini .admin-sidebar .submenu-toggle,
body.sidebar-mini .admin-sidebar .menu-badge {
    display: none !important;
}

body.sidebar-mini .admin-sidebar .menu-item {
    margin: 4px 12px;
}

body.sidebar-mini .admin-sidebar .menu-item > a,
body.sidebar-mini .admin-sidebar .menu-item > .menu-item-wrapper > a {
    justify-content: center;
    padding: 12px 0;
    gap: 0;
}

body.sidebar-mini .admin-sidebar .menu-item > a i,
body.sidebar-mini .admin-sidebar .menu-item > .menu-item-wrapper > a i {
    font-size: 18px;
    width: auto;
    margin: 0;
}

body.sidebar-mini .admin-sidebar .menu-item {
    position: relative;
}

body.sidebar-mini .admin-sidebar .menu-item > a::after,
body.sidebar-mini .admin-sidebar .menu-item > .menu-item-wrapper > a::after {
    content: attr(data-title);
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%) scale(0.95);
    background: #0a2558;
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s;
    z-index: 9999;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    direction: rtl;
}

body.sidebar-mini .admin-sidebar .menu-item > a::before,
body.sidebar-mini .admin-sidebar .menu-item > .menu-item-wrapper > a::before {
    content: '';
    position: absolute;
    right: calc(100% + 6px);
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: #0a2558;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s;
    z-index: 9999;
}

body.sidebar-mini .admin-sidebar .menu-item > a:hover::after,
body.sidebar-mini .admin-sidebar .menu-item > .menu-item-wrapper > a:hover::after {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

body.sidebar-mini .admin-sidebar .menu-item > a:hover::before,
body.sidebar-mini .admin-sidebar .menu-item > .menu-item-wrapper > a:hover::before {
    opacity: 1;
}

@media (max-width: 992px) {
    body.sidebar-mini .admin-sidebar .menu-item > a::after,
    body.sidebar-mini .admin-sidebar .menu-item > .menu-item-wrapper > a::after,
    body.sidebar-mini .admin-sidebar .menu-item > a::before,
    body.sidebar-mini .admin-sidebar .menu-item > .menu-item-wrapper > a::before {
        display: none !important;
    }
}

body.sidebar-mini .sidebar-minimize-btn i {
    transform: rotate(180deg);
}

/* ============================================================
   🌍 ودجت الأيام العالمية
   ============================================================ */
.world-widget-section {
    margin-bottom: 22px;
}
.world-widget-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
    overflow: hidden;
    position: relative;
}
body.dark-mode .world-widget-card {
    background: #1e293b;
    border-color: #334155;
}
.world-widget-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0; left: 0;
    height: 4px;
    background: linear-gradient(90deg, #0891b2, #06b6d4, #22d3ee);
}
.world-widget-head {
    padding: 14px 22px;
    background: linear-gradient(135deg, #ecfeff 0%, #cffafe 100%);
    border-bottom: 1px solid #a5f3fc;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
body.dark-mode .world-widget-head {
    background: linear-gradient(135deg, rgba(8,145,178,0.15), rgba(6,182,212,0.1));
    border-bottom-color: #334155;
}
.world-widget-head .wwh-icon {
    width: 40px; height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0891b2, #06b6d4);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}
.world-widget-head .wwh-title {
    font-weight: 800;
    font-size: 1rem;
    color: #0e7490;
    margin: 0;
}
body.dark-mode .world-widget-head .wwh-title {
    color: #67e8f9;
}
.world-widget-head .wwh-desc {
    font-size: 0.78rem;
    color: #64748b;
    margin: 2px 0 0;
}
body.dark-mode .world-widget-head .wwh-desc {
    color: #94a3b8;
}
.world-widget-body {
    padding: 20px 22px;
}
.wd-slogan {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f0fdfa, #ccfbf1);
    border: 2px solid #14b8a6;
    border-radius: 14px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}
body.dark-mode .wd-slogan {
    background: linear-gradient(135deg, rgba(20,184,166,0.12), rgba(6,182,212,0.05));
}
.wd-slogan::before {
    content: '';
    position: absolute;
    top: -50%; right: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(20,184,166,0.1) 0%, transparent 70%);
    animation: rotate-slow 30s linear infinite;
}
.wd-slogan-icon {
    color: #14b8a6;
    font-size: 1.3rem;
    flex-shrink: 0;
    opacity: 0.6;
    position: relative;
    z-index: 1;
}
.wd-slogan-text {
    flex: 1;
    text-align: center;
    font-weight: 800;
    font-size: 1.1rem;
    color: #0f766e;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}
body.dark-mode .wd-slogan-text {
    color: #5eead4;
}
.wd-month-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(90deg, #0891b2, #06b6d4);
    color: #fff;
    border-radius: 10px;
    margin-bottom: 14px;
    font-size: 0.9rem;
    font-weight: 700;
}
.wd-month-header i { font-size: 1.1rem; }
.wd-month-header strong { color: #fef3c7; }
.wd-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 10px;
}
.wd-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.25s;
}
body.dark-mode .wd-item {
    background: #0f172a;
    border-color: #334155;
}
.wd-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    border-color: #0891b2;
}
.wd-item.day { border-right: 4px solid #3b82f6; }
.wd-item.month { border-right: 4px solid #f59e0b; }
.wd-item-date {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    font-weight: 800;
}
.wd-item-date.day { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.wd-item-date.month { background: linear-gradient(135deg, #f59e0b, #d97706); font-size: 0.85rem; }
.wd-item-date i { font-size: 0.85rem; margin-bottom: 1px; }
.wd-item-date span { font-size: 0.9rem; }
.wd-item-content { flex: 1; min-width: 0; }
.wd-item-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: #0f172a;
    line-height: 1.35;
}
body.dark-mode .wd-item-name { color: #f1f5f9; }
.wd-item-name i { color: #0891b2; }
.wd-item-desc {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 3px;
    line-height: 1.5;
}
body.dark-mode .wd-item-desc { color: #94a3b8; }
.wd-empty {
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
}
.wd-empty i {
    font-size: 3rem;
    opacity: 0.3;
    margin-bottom: 12px;
    display: block;
}
.wd-empty p { margin: 0; font-size: 0.9rem; }

@media (max-width: 576px) {
    .wd-list { grid-template-columns: 1fr; }
    .wd-slogan-text { font-size: 0.95rem; }
    .wd-slogan-icon { font-size: 1rem; }
}

/* ============================================================
   🇸🇦 الثيم الأخضر السعودي
   ============================================================ */

body.theme-green {
    --primary: #005c2d !important;
    --primary-light: #0d773e !important;
    --accent: #0e8548 !important;
    --accent-hover: #0b6938 !important;
    --gold: #c5a059;
    --gold-dark: #a88339;
}

body.theme-green .navbar-modern {
    background: linear-gradient(135deg, #022b15 0%, #005c2d 55%, #0d773e 100%) !important;
    border-bottom: 2px solid #c5a059 !important;
    box-shadow: 0 4px 20px rgba(0, 92, 45, 0.25) !important;
}

body.theme-green .navbar-brand { color: #ffffff !important; }

body.theme-green .hero-banner {
    background: linear-gradient(135deg, #022b15 0%, #005c2d 50%, #0d773e 100%) !important;
    box-shadow: 0 10px 30px rgba(0, 92, 45, 0.25) !important;
}

body.theme-green .hero-banner::before {
    background: radial-gradient(circle, rgba(197, 160, 89, 0.15) 0%, rgba(255,255,255,0) 70%) !important;
}

body.theme-green .btn-primary,
body.theme-green .btn-submit-quick,
body.theme-green button.btn-primary,
body.theme-green input[type='submit'].btn-primary {
    background: linear-gradient(135deg, #005c2d 0%, #0d773e 100%) !important;
    border-color: #005c2d !important;
    color: #ffffff !important;
}

body.theme-green .btn-primary:hover,
body.theme-green .btn-submit-quick:hover {
    background: linear-gradient(135deg, #0d773e 0%, #0e8548 100%) !important;
    border-color: #0d773e !important;
    box-shadow: 0 4px 15px rgba(0, 92, 45, 0.35) !important;
    color: #ffffff !important;
}

body.theme-green .table thead th {
    background: linear-gradient(135deg, #004d26 0%, #005c2d 100%) !important;
    color: #ffffff !important;
    border-color: #005c2d !important;
}

body.theme-green .admin-sidebar .menu-item.active > a,
body.theme-green .admin-sidebar .menu-item > a:hover,
body.theme-green .admin-sidebar .menu-item.active > .menu-item-wrapper > a,
body.theme-green .admin-sidebar .menu-item > .menu-item-wrapper > a:hover {
    background: linear-gradient(135deg, #005c2d 0%, #0d773e 100%) !important;
    color: #ffffff !important;
    border-right-color: #c5a059 !important;
    box-shadow: 0 4px 15px rgba(0, 92, 45, 0.25) !important;
}

body.theme-green .admin-sidebar .menu-item.active > a i,
body.theme-green .admin-sidebar .menu-item.active > .menu-item-wrapper > a i {
    color: #c5a059 !important;
}

body.theme-green .status-badge.approved,
body.theme-green .alert-success,
body.theme-green .badge-leader-yes {
    background-color: #e6f6ee !important;
    color: #005c2d !important;
    border: 1px solid #b7ebd0 !important;
}

body.theme-green .status-badge.pending,
body.theme-green .alert-warning {
    background-color: #fff8e6 !important;
    color: #966708 !important;
    border: 1px solid #fde4a7 !important;
}

body.theme-green .status-badge.cancelled,
body.theme-green .alert-danger,
body.theme-green .badge-leader-no {
    background-color: #fde8e8 !important;
    color: #9b1c1c !important;
    border: 1px solid #f8b4b4 !important;
}

body.theme-green .section-card,
body.theme-green .authority-item {
    border-right-color: #005c2d !important;
}

body.theme-green .sm-hero {
    background: linear-gradient(135deg, #022b15 0%, #005c2d 100%) !important;
}

body.theme-green .order-badge.section-order,
body.theme-green .item-icon,
body.theme-green .kec-time {
    background: linear-gradient(135deg, #005c2d, #0d773e) !important;
}

body.theme-green .text-primary,
body.theme-green .settings-section .section-title i {
    color: #005c2d !important;
}

body.theme-green .bg-primary {
    background-color: #005c2d !important;
}

body.theme-green .brand-icon {
    background: linear-gradient(135deg, #005c2d, #0d773e) !important;
}

body.theme-green .widget-icon.primary {
    background: #e6f6ee !important;
    color: #005c2d !important;
}

body.theme-green .widget-icon.success {
    background: #e6f6ee !important;
    color: #005c2d !important;
}

body.theme-green .btn-action.success {
    background: #e6f6ee !important;
    color: #005c2d !important;
}

body.theme-green .btn-action.success:hover {
    background: #005c2d !important;
    color: #ffffff !important;
}

body.theme-green .contact-select:focus,
body.theme-green .quick-input:focus {
    border-color: #005c2d !important;
    box-shadow: 0 0 0 3px rgba(0, 92, 45, 0.15) !important;
}

body.theme-green .btn-copy {
    background: rgba(0, 92, 45, 0.1) !important;
    color: #005c2d !important;
}

body.theme-green .btn-copy:hover {
    background: #005c2d !important;
    color: #ffffff !important;
}

body.theme-green .footer-modern {
    background: #022b15 !important;
    border-top: 2px solid #c5a059 !important;
}

body.theme-green.dark-mode {
    --primary: #0d773e !important;
    --primary-light: #0e8548 !important;
    --accent: #10a855 !important;
}

body.theme-green.dark-mode .navbar-modern {
    background: linear-gradient(135deg, #011a0c 0%, #014422 55%, #0a5c30 100%) !important;
}

body.theme-green.dark-mode .hero-banner {
    background: linear-gradient(135deg, #011a0c 0%, #014422 50%, #0a5c30 100%) !important;
}

/* ============================================================
   🔵 الثيم الأزرق الفاتح
   ============================================================ */

body.theme-lightblue {
    --primary: #0284c7 !important;
    --primary-light: #0ea5e9 !important;
    --accent: #38bdf8 !important;
    --accent-hover: #0ea5e9 !important;
}

body.theme-lightblue .navbar-modern {
    background: linear-gradient(135deg, #082f49 0%, #0284c7 55%, #0ea5e9 100%) !important;
    border-bottom: 2px solid #38bdf8 !important;
    box-shadow: 0 4px 20px rgba(2, 132, 199, 0.25) !important;
}

body.theme-lightblue .navbar-brand { color: #ffffff !important; }

body.theme-lightblue .hero-banner {
    background: linear-gradient(135deg, #082f49 0%, #0284c7 50%, #0ea5e9 100%) !important;
    box-shadow: 0 10px 30px rgba(2, 132, 199, 0.25) !important;
}

body.theme-lightblue .hero-banner::before {
    background: radial-gradient(circle, rgba(56, 189, 248, 0.2) 0%, rgba(255,255,255,0) 70%) !important;
}

body.theme-lightblue .btn-primary,
body.theme-lightblue .btn-submit-quick,
body.theme-lightblue button.btn-primary,
body.theme-lightblue input[type='submit'].btn-primary {
    background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%) !important;
    border-color: #0284c7 !important;
    color: #ffffff !important;
}

body.theme-lightblue .btn-primary:hover,
body.theme-lightblue .btn-submit-quick:hover {
    background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%) !important;
    border-color: #0ea5e9 !important;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.35) !important;
    color: #ffffff !important;
}

body.theme-lightblue .table thead th {
    background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%) !important;
    color: #ffffff !important;
    border-color: #0284c7 !important;
}

body.theme-lightblue .admin-sidebar .menu-item.active > a,
body.theme-lightblue .admin-sidebar .menu-item > a:hover,
body.theme-lightblue .admin-sidebar .menu-item.active > .menu-item-wrapper > a,
body.theme-lightblue .admin-sidebar .menu-item > .menu-item-wrapper > a:hover {
    background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%) !important;
    color: #ffffff !important;
    border-right-color: #38bdf8 !important;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.25) !important;
}

body.theme-lightblue .admin-sidebar .menu-item.active > a i,
body.theme-lightblue .admin-sidebar .menu-item.active > .menu-item-wrapper > a i {
    color: #bae6fd !important;
}

body.theme-lightblue .status-badge.approved,
body.theme-lightblue .alert-success,
body.theme-lightblue .badge-leader-yes {
    background-color: #e0f2fe !important;
    color: #0369a1 !important;
    border: 1px solid #bae6fd !important;
}

body.theme-lightblue .section-card,
body.theme-lightblue .authority-item {
    border-right-color: #0284c7 !important;
}

body.theme-lightblue .sm-hero {
    background: linear-gradient(135deg, #082f49 0%, #0284c7 100%) !important;
}

body.theme-lightblue .order-badge.section-order,
body.theme-lightblue .item-icon,
body.theme-lightblue .kec-time {
    background: linear-gradient(135deg, #0284c7, #0ea5e9) !important;
}

body.theme-lightblue .text-primary,
body.theme-lightblue .settings-section .section-title i {
    color: #0284c7 !important;
}

body.theme-lightblue .bg-primary { background-color: #0284c7 !important; }

body.theme-lightblue .brand-icon {
    background: linear-gradient(135deg, #0284c7, #0ea5e9) !important;
}

body.theme-lightblue .widget-icon.primary,
body.theme-lightblue .widget-icon.success {
    background: #e0f2fe !important;
    color: #0284c7 !important;
}

body.theme-lightblue .btn-action.success {
    background: #e0f2fe !important;
    color: #0284c7 !important;
}

body.theme-lightblue .btn-action.success:hover {
    background: #0284c7 !important;
    color: #ffffff !important;
}

body.theme-lightblue .contact-select:focus,
body.theme-lightblue .quick-input:focus {
    border-color: #0284c7 !important;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15) !important;
}

body.theme-lightblue .btn-copy {
    background: rgba(2, 132, 199, 0.1) !important;
    color: #0284c7 !important;
}

body.theme-lightblue .btn-copy:hover {
    background: #0284c7 !important;
    color: #ffffff !important;
}

body.theme-lightblue .footer-modern {
    background: #082f49 !important;
    border-top: 2px solid #38bdf8 !important;
}

body.theme-lightblue.dark-mode {
    --primary: #0ea5e9 !important;
    --primary-light: #38bdf8 !important;
    --accent: #7dd3fc !important;
}

body.theme-lightblue.dark-mode .navbar-modern {
    background: linear-gradient(135deg, #041e2e 0%, #0369a1 55%, #0284c7 100%) !important;
}

body.theme-lightblue.dark-mode .hero-banner {
    background: linear-gradient(135deg, #041e2e 0%, #0369a1 50%, #0284c7 100%) !important;
}

/* ============================================================
   🟣 الثيم البنفسجي الملكي
   ============================================================ */

body.theme-purple {
    --primary: #6d28d9 !important;
    --primary-light: #7c3aed !important;
    --accent: #8b5cf6 !important;
    --accent-hover: #7c3aed !important;
}

body.theme-purple .navbar-modern {
    background: linear-gradient(135deg, #2e1065 0%, #6d28d9 55%, #7c3aed 100%) !important;
    border-bottom: 2px solid #a78bfa !important;
    box-shadow: 0 4px 20px rgba(109, 40, 217, 0.25) !important;
}

body.theme-purple .navbar-brand { color: #ffffff !important; }

body.theme-purple .hero-banner {
    background: linear-gradient(135deg, #2e1065 0%, #6d28d9 50%, #7c3aed 100%) !important;
    box-shadow: 0 10px 30px rgba(109, 40, 217, 0.25) !important;
}

body.theme-purple .hero-banner::before {
    background: radial-gradient(circle, rgba(167, 139, 250, 0.2) 0%, rgba(255,255,255,0) 70%) !important;
}

body.theme-purple .btn-primary,
body.theme-purple .btn-submit-quick,
body.theme-purple button.btn-primary,
body.theme-purple input[type='submit'].btn-primary {
    background: linear-gradient(135deg, #6d28d9 0%, #7c3aed 100%) !important;
    border-color: #6d28d9 !important;
    color: #ffffff !important;
}

body.theme-purple .btn-primary:hover,
body.theme-purple .btn-submit-quick:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%) !important;
    border-color: #7c3aed !important;
    box-shadow: 0 4px 15px rgba(109, 40, 217, 0.35) !important;
    color: #ffffff !important;
}

body.theme-purple .table thead th {
    background: linear-gradient(135deg, #5b21b6 0%, #6d28d9 100%) !important;
    color: #ffffff !important;
    border-color: #6d28d9 !important;
}

body.theme-purple .admin-sidebar .menu-item.active > a,
body.theme-purple .admin-sidebar .menu-item > a:hover,
body.theme-purple .admin-sidebar .menu-item.active > .menu-item-wrapper > a,
body.theme-purple .admin-sidebar .menu-item > .menu-item-wrapper > a:hover {
    background: linear-gradient(135deg, #6d28d9 0%, #7c3aed 100%) !important;
    color: #ffffff !important;
    border-right-color: #a78bfa !important;
    box-shadow: 0 4px 15px rgba(109, 40, 217, 0.25) !important;
}

body.theme-purple .admin-sidebar .menu-item.active > a i,
body.theme-purple .admin-sidebar .menu-item.active > .menu-item-wrapper > a i {
    color: #ddd6fe !important;
}

body.theme-purple .status-badge.approved,
body.theme-purple .alert-success,
body.theme-purple .badge-leader-yes {
    background-color: #ede9fe !important;
    color: #5b21b6 !important;
    border: 1px solid #ddd6fe !important;
}

body.theme-purple .section-card,
body.theme-purple .authority-item {
    border-right-color: #6d28d9 !important;
}

body.theme-purple .sm-hero {
    background: linear-gradient(135deg, #2e1065 0%, #6d28d9 100%) !important;
}

body.theme-purple .order-badge.section-order,
body.theme-purple .item-icon,
body.theme-purple .kec-time {
    background: linear-gradient(135deg, #6d28d9, #7c3aed) !important;
}

body.theme-purple .text-primary,
body.theme-purple .settings-section .section-title i {
    color: #6d28d9 !important;
}

body.theme-purple .bg-primary { background-color: #6d28d9 !important; }

body.theme-purple .brand-icon {
    background: linear-gradient(135deg, #6d28d9, #7c3aed) !important;
}

body.theme-purple .widget-icon.primary,
body.theme-purple .widget-icon.success {
    background: #ede9fe !important;
    color: #6d28d9 !important;
}

body.theme-purple .btn-action.success {
    background: #ede9fe !important;
    color: #6d28d9 !important;
}

body.theme-purple .btn-action.success:hover {
    background: #6d28d9 !important;
    color: #ffffff !important;
}

body.theme-purple .contact-select:focus,
body.theme-purple .quick-input:focus {
    border-color: #6d28d9 !important;
    box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.15) !important;
}

body.theme-purple .btn-copy {
    background: rgba(109, 40, 217, 0.1) !important;
    color: #6d28d9 !important;
}

body.theme-purple .btn-copy:hover {
    background: #6d28d9 !important;
    color: #ffffff !important;
}

body.theme-purple .footer-modern {
    background: #2e1065 !important;
    border-top: 2px solid #a78bfa !important;
}

body.theme-purple.dark-mode {
    --primary: #7c3aed !important;
    --primary-light: #8b5cf6 !important;
    --accent: #a78bfa !important;
}

body.theme-purple.dark-mode .navbar-modern {
    background: linear-gradient(135deg, #1e0a4a 0%, #5b21b6 55%, #6d28d9 100%) !important;
}

body.theme-purple.dark-mode .hero-banner {
    background: linear-gradient(135deg, #1e0a4a 0%, #5b21b6 50%, #6d28d9 100%) !important;
}

/* ============================================================
   🟠 الثيم البرتقالي الدافئ
   ============================================================ */

body.theme-orange {
    --primary: #ea580c !important;
    --primary-light: #f97316 !important;
    --accent: #fb923c !important;
    --accent-hover: #f97316 !important;
}

body.theme-orange .navbar-modern {
    background: linear-gradient(135deg, #7c2d12 0%, #ea580c 55%, #f97316 100%) !important;
    border-bottom: 2px solid #fdba74 !important;
    box-shadow: 0 4px 20px rgba(234, 88, 12, 0.25) !important;
}

body.theme-orange .navbar-brand { color: #ffffff !important; }

body.theme-orange .hero-banner {
    background: linear-gradient(135deg, #7c2d12 0%, #ea580c 50%, #f97316 100%) !important;
    box-shadow: 0 10px 30px rgba(234, 88, 12, 0.25) !important;
}

body.theme-orange .hero-banner::before {
    background: radial-gradient(circle, rgba(253, 186, 116, 0.2) 0%, rgba(255,255,255,0) 70%) !important;
}

body.theme-orange .btn-primary,
body.theme-orange .btn-submit-quick,
body.theme-orange button.btn-primary,
body.theme-orange input[type='submit'].btn-primary {
    background: linear-gradient(135deg, #ea580c 0%, #f97316 100%) !important;
    border-color: #ea580c !important;
    color: #ffffff !important;
}

body.theme-orange .btn-primary:hover,
body.theme-orange .btn-submit-quick:hover {
    background: linear-gradient(135deg, #f97316 0%, #fb923c 100%) !important;
    border-color: #f97316 !important;
    box-shadow: 0 4px 15px rgba(234, 88, 12, 0.35) !important;
    color: #ffffff !important;
}

body.theme-orange .table thead th {
    background: linear-gradient(135deg, #c2410c 0%, #ea580c 100%) !important;
    color: #ffffff !important;
    border-color: #ea580c !important;
}

body.theme-orange .admin-sidebar .menu-item.active > a,
body.theme-orange .admin-sidebar .menu-item > a:hover,
body.theme-orange .admin-sidebar .menu-item.active > .menu-item-wrapper > a,
body.theme-orange .admin-sidebar .menu-item > .menu-item-wrapper > a:hover {
    background: linear-gradient(135deg, #ea580c 0%, #f97316 100%) !important;
    color: #ffffff !important;
    border-right-color: #fdba74 !important;
    box-shadow: 0 4px 15px rgba(234, 88, 12, 0.25) !important;
}

body.theme-orange .admin-sidebar .menu-item.active > a i,
body.theme-orange .admin-sidebar .menu-item.active > .menu-item-wrapper > a i {
    color: #fed7aa !important;
}

body.theme-orange .status-badge.approved,
body.theme-orange .alert-success,
body.theme-orange .badge-leader-yes {
    background-color: #ffedd5 !important;
    color: #c2410c !important;
    border: 1px solid #fed7aa !important;
}

body.theme-orange .section-card,
body.theme-orange .authority-item {
    border-right-color: #ea580c !important;
}

body.theme-orange .sm-hero {
    background: linear-gradient(135deg, #7c2d12 0%, #ea580c 100%) !important;
}

body.theme-orange .order-badge.section-order,
body.theme-orange .item-icon,
body.theme-orange .kec-time {
    background: linear-gradient(135deg, #ea580c, #f97316) !important;
}

body.theme-orange .text-primary,
body.theme-orange .settings-section .section-title i {
    color: #ea580c !important;
}

body.theme-orange .bg-primary { background-color: #ea580c !important; }

body.theme-orange .brand-icon {
    background: linear-gradient(135deg, #ea580c, #f97316) !important;
}

body.theme-orange .widget-icon.primary,
body.theme-orange .widget-icon.success {
    background: #ffedd5 !important;
    color: #ea580c !important;
}

body.theme-orange .btn-action.success {
    background: #ffedd5 !important;
    color: #ea580c !important;
}

body.theme-orange .btn-action.success:hover {
    background: #ea580c !important;
    color: #ffffff !important;
}

body.theme-orange .contact-select:focus,
body.theme-orange .quick-input:focus {
    border-color: #ea580c !important;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15) !important;
}

body.theme-orange .btn-copy {
    background: rgba(234, 88, 12, 0.1) !important;
    color: #ea580c !important;
}

body.theme-orange .btn-copy:hover {
    background: #ea580c !important;
    color: #ffffff !important;
}

body.theme-orange .footer-modern {
    background: #7c2d12 !important;
    border-top: 2px solid #fdba74 !important;
}

body.theme-orange.dark-mode {
    --primary: #f97316 !important;
    --primary-light: #fb923c !important;
    --accent: #fdba74 !important;
}

body.theme-orange.dark-mode .navbar-modern {
    background: linear-gradient(135deg, #4a1c08 0%, #c2410c 55%, #ea580c 100%) !important;
}

body.theme-orange.dark-mode .hero-banner {
    background: linear-gradient(135deg, #4a1c08 0%, #c2410c 50%, #ea580c 100%) !important;
}