/* ====================================================================
   نظام سِجل - الملف الرئيسي لتصميم الواجهات الجمالية الفاخرة (index.css)
   المظهر الفني: Glassmorphism / Slate Dark Sidebar / Elegant HSL Colors
   ==================================================================== */

:root {
    /* باليتة الألوان المنسقة بعناية - درجات HSL متميزة */
    --primary-slate: hsl(222, 47%, 11%);
    --primary-slate-light: hsl(222, 35%, 18%);
    --accent-blue: #2563eb;
    --accent-blue-dim: rgba(37, 99, 235, 0.1);
    
    /* ألوان الحوكمة والرقابة الصارمة */
    --gov-green: hsl(142, 70%, 40%);
    --gov-green-glow: hsla(142, 70%, 40%, 0.15);
    --gov-yellow: hsl(45, 93%, 47%);
    --gov-yellow-glow: hsla(45, 93%, 47%, 0.15);
    --gov-orange: hsl(24, 95%, 50%);
    --gov-orange-glow: hsla(24, 95%, 50%, 0.15);
    --gov-red: hsl(0, 84%, 55%);
    --gov-red-glow: hsla(0, 84%, 55%, 0.2);
    --gov-grey: hsl(215, 16%, 47%);
    --gov-grey-glow: hsla(215, 16%, 47%, 0.15);
    --gov-blue: hsl(221, 83%, 53%);
    --gov-blue-glow: hsla(221, 83%, 53%, 0.15);

    /* تدرجات الخلفية والبطاقات الزجاجية */
    --bg-light: hsl(210, 40%, 96.5%);
    --card-glass-bg: rgba(255, 255, 255, 0.72);
    --card-glass-border: rgba(255, 255, 255, 0.6);
    --text-main: hsl(222, 29%, 18%);
    --text-muted: hsl(215, 16%, 47%);
    --border-light: hsl(214, 32%, 91%);
    
    /* ظلال ناعمة ومؤثرات حركية */
    --shadow-soft: 0 8px 30px 0 rgba(31, 38, 135, 0.04);
    --shadow-medium: 0 12px 40px 0 rgba(31, 38, 135, 0.08);
    --radius-soft: 14px;
    --radius-pill: 50px;
    --transition-smooth: all 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------
   إعادة تعيين وبنية الصفحة الأساسية (General Reset & Base)
   -------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.5;
}

/* حاوية التطبيق الرئيسي (Sidebar + Main) */
.app-container {
    display: flex;
    min-height: 100vh;
    width: 100vw;
}

/* --------------------------------------------------------------------
   الشريط الجانبي الفاخر (Slate Sidebar)
   -------------------------------------------------------------------- */
.sidebar {
    width: 280px;
    background-color: var(--primary-slate);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    padding: 24px 16px;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.25);
    z-index: 100;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
    padding: 0 8px;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--accent-blue), #1d4ed8);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.brand-text h2 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #ffffff;
}

.brand-text span {
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 600;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.nav-item {
    background: none;
    border: none;
    outline: none;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 10px;
    color: #cbd5e1;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-align: right;
    transition: var(--transition-smooth);
    width: 100%;
}

.nav-item i {
    font-size: 16px;
    width: 20px;
    text-align: center;
    transition: var(--transition-smooth);
}

.nav-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.nav-item.active {
    background-color: var(--accent-blue);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.nav-item.active i {
    transform: scale(1.15);
}

.sidebar-footer {
    padding: 16px 8px 0 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 40px;
    height: 40px;
    background-color: #3b82f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.user-info strong {
    font-size: 13px;
    display: block;
    color: #f8fafc;
}

.user-info span {
    font-size: 10.5px;
    color: #94a3b8;
    display: block;
}

/* --------------------------------------------------------------------
   المحتوى الرئيسي والتصميم الزجاجي (Main Content & Topbar)
   -------------------------------------------------------------------- */
.main-content {
    flex-grow: 1;
    padding: 30px 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    height: 100vh;
    overflow-y: auto;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.page-title h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-slate);
}

.page-title p {
    font-size: 13px;
    color: var(--text-muted);
}

/* كرت محاكي تقدم الزمن (Time Travel Box) */
.time-simulator-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid var(--card-glass-border);
    box-shadow: var(--shadow-soft);
    padding: 12px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-right: 4px solid var(--accent-blue);
}

.sim-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.pulse-indicator {
    width: 8px;
    height: 8px;
    background-color: var(--gov-green);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: pulse-green 2s infinite;
}

.date-badge {
    font-family: 'Courier New', Courier, monospace;
    font-weight: 700;
    font-size: 15px;
    color: var(--accent-blue);
    background-color: var(--accent-blue-dim);
    padding: 4px 10px;
    border-radius: 6px;
}

.sim-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

.sim-btn {
    background-color: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: var(--text-main);
    padding: 5px 12px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.sim-btn:hover {
    background-color: #e2e8f0;
    border-color: #94a3b8;
}

.cron-trigger-btn {
    background: linear-gradient(135deg, #1e293b, var(--primary-slate));
    border: none;
    color: #ffffff;
    padding: 6px 14px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.cron-trigger-btn:hover {
    background: linear-gradient(135deg, var(--accent-blue), #1d4ed8);
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.25);
}

.cron-trigger-btn i {
    font-size: 12px;
}

/* --------------------------------------------------------------------
   البطاقات الإحصائية والشبكة (Stats Grid)
   -------------------------------------------------------------------- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.stat-card {
    background: var(--card-glass-bg);
    backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--card-glass-border);
    box-shadow: var(--shadow-soft);
    border-radius: var(--radius-soft);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition-smooth);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    border-color: rgba(255, 255, 255, 0.8);
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.meetings-icon { background-color: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.outcomes-icon { background-color: rgba(139, 92, 246, 0.1); color: #8b5cf6; }
.progress-icon { background-color: rgba(16, 185, 129, 0.1); color: #10b981; }
.active-escalations-icon { background-color: rgba(239, 68, 68, 0.1); color: #ef4444; }

.stat-data {
    display: flex;
    flex-direction: column;
}

.stat-title {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-data h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-slate);
    margin-top: 2px;
}

/* --------------------------------------------------------------------
   شبكة حوكمة ألوان المخرجات (Governance Colors)
   -------------------------------------------------------------------- */
.color-governance-panel {
    background: var(--card-glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--card-glass-border);
    box-shadow: var(--shadow-soft);
    border-radius: var(--radius-soft);
    padding: 24px;
}

.panel-header {
    margin-bottom: 20px;
}

.panel-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-slate);
}

.panel-header span {
    font-size: 12px;
    color: var(--text-muted);
}

.colors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.color-stat-box {
    background-color: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    transition: var(--transition-smooth);
}

.color-stat-box:hover {
    transform: translateY(-2px);
}

.color-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 10px;
}

.bg-green { background-color: var(--gov-green); color: #ffffff; }
.bg-yellow { background-color: var(--gov-yellow); color: #ffffff; }
.bg-orange { background-color: var(--gov-orange); color: #ffffff; }
.bg-red { background-color: var(--gov-red); color: #ffffff; }
.bg-grey { background-color: var(--gov-grey); color: #ffffff; }
.bg-blue { background-color: var(--accent-blue); color: #ffffff; }

.color-stat-num {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 6px;
}

#color-count-green { color: var(--gov-green); }
#color-count-yellow { color: var(--gov-yellow); }
#color-count-orange { color: var(--gov-orange); }
#color-count-red { color: var(--gov-red); }
#color-count-grey { color: var(--gov-grey); }
#color-count-blue { color: var(--accent-blue); }

.color-desc {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* توهج الألوان للمراقبة الحية */
.green-glow:hover { box-shadow: 0 4px 20px var(--gov-green-glow); border-color: var(--gov-green); }
.yellow-glow:hover { box-shadow: 0 4px 20px var(--gov-yellow-glow); border-color: var(--gov-yellow); }
.orange-glow:hover { box-shadow: 0 4px 20px var(--gov-orange-glow); border-color: var(--gov-orange); }
.red-glow:hover { box-shadow: 0 4px 20px var(--gov-red-glow); border-color: var(--gov-red); }
.grey-glow:hover { box-shadow: 0 4px 20px var(--gov-grey-glow); border-color: var(--gov-grey); }
.blue-glow:hover { box-shadow: 0 4px 20px rgba(37, 99, 235, 0.25); border-color: var(--accent-blue); }

/* --------------------------------------------------------------------
   الأعمدة الثنائية والمخططات التفاعلية
   -------------------------------------------------------------------- */
.dashboard-double-column {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 24px;
}

.glass-panel {
    background: var(--card-glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--card-glass-border);
    box-shadow: var(--shadow-soft);
    border-radius: var(--radius-soft);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.panel-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 12px;
}

.panel-title-bar h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-slate);
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
}

.bg-red-dim { background-color: rgba(239, 68, 68, 0.1); color: var(--gov-red); }
.bg-green-dim { background-color: rgba(16, 185, 129, 0.1); color: var(--gov-green); }
.bg-blue-dim { background-color: var(--accent-blue-dim); color: var(--accent-blue); }
.bg-grey-dim { background-color: var(--gov-grey-glow); color: var(--gov-grey); }

.action-link-btn {
    background: none;
    border: none;
    color: var(--accent-blue);
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.action-link-btn:hover {
    text-decoration: underline;
}

.panel-body {
    flex-grow: 1;
}

/* --------------------------------------------------------------------
   تصميم الجداول والبيانات (Sijill Tables)
   -------------------------------------------------------------------- */
.table-responsive {
    overflow-x: auto;
    width: 100%;
}

.sijill-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
    text-align: right;
}

.sijill-table th, .sijill-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-light);
}

.sijill-table th {
    background-color: #f8fafc;
    color: var(--text-main);
    font-weight: 700;
    font-size: 12px;
}

.sijill-table tbody tr {
    transition: var(--transition-smooth);
}

.sijill-table tbody tr:hover {
    background-color: rgba(241, 245, 249, 0.5);
}

.sijill-table strong {
    font-weight: 600;
    color: var(--primary-slate);
}

.text-red { color: var(--gov-red) !important; }
.text-blue { color: var(--accent-blue) !important; }
.text-green { color: var(--gov-green) !important; }
.text-orange { color: var(--gov-orange) !important; }
.text-grey { color: var(--gov-grey) !important; }

/* --------------------------------------------------------------------
   تايم لاين الاجتماعات (Meetings Timeline)
   -------------------------------------------------------------------- */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    padding-right: 12px;
}

.timeline::after {
    content: '';
    position: absolute;
    top: 10px;
    bottom: 10px;
    right: 4px;
    width: 2px;
    background-color: var(--border-light);
}

.timeline-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    padding-right: 16px;
}

.timeline-marker {
    position: absolute;
    top: 5px;
    right: 0;
    width: 10px;
    height: 10px;
    background-color: #cbd5e1;
    border-radius: 50%;
    z-index: 2;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 3px rgba(203, 213, 225, 0.2);
}

.timeline-item.scheduled .timeline-marker {
    background-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.timeline-item.completed .timeline-marker {
    background-color: var(--gov-green);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.timeline-item.cancelled .timeline-marker {
    background-color: var(--gov-red);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.timeline-date {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}

.timeline-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-slate);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.timeline-title:hover {
    color: var(--accent-blue);
}

.timeline-details {
    font-size: 11.5px;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------
   تبويب الاجتماعات (Meetings Grid & Cards)
   -------------------------------------------------------------------- */
.tab-action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    background: var(--card-glass-bg);
    padding: 16px 24px;
    border-radius: var(--radius-soft);
    border: 1px solid var(--card-glass-border);
    box-shadow: var(--shadow-soft);
}

.filter-group {
    display: flex;
    gap: 8px;
}

.filter-btn {
    background-color: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: var(--text-muted);
    padding: 8px 16px;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-btn:hover {
    background-color: #e2e8f0;
    color: var(--text-main);
}

.filter-btn.active {
    background-color: var(--primary-slate);
    border-color: var(--primary-slate);
    color: #ffffff;
}

.btn {
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), #1d4ed8);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

.btn-secondary {
    background-color: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: var(--text-main);
}

.btn-secondary:hover {
    background-color: #e2e8f0;
}

.btn-sm {
    padding: 5px 12px;
    font-size: 11.5px;
    border-radius: 6px;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.meetings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.meeting-card {
    background: var(--card-glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--card-glass-border);
    border-radius: var(--radius-soft);
    box-shadow: var(--shadow-soft);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: var(--transition-smooth);
    border-right: 5px solid #cbd5e1;
}

.meeting-card.scheduled { border-right-color: var(--accent-blue); }
.meeting-card.completed { border-right-color: var(--gov-green); }

.meeting-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.meeting-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.meeting-entity-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-blue);
    background-color: var(--accent-blue-dim);
    padding: 2px 8px;
    border-radius: 4px;
}

.meeting-status-tag {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

.status-scheduled { background-color: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.status-completed { background-color: rgba(16, 185, 129, 0.1); color: #10b981; }
.status-cancelled { background-color: rgba(239, 68, 68, 0.1); color: #ef4444; }
.status-completed-approved { background: linear-gradient(135deg, rgba(212,160,23,0.15), rgba(240,192,64,0.1)); color: #78580a; border: 1px solid rgba(212,160,23,0.35) !important; font-weight: 700; }

/* نمط الشارة الذهبية لاجتماعات منتهي ومعتمد */
.bg-gold-dim {
    background: linear-gradient(135deg, rgba(212,160,23,0.15), rgba(240,192,64,0.08));
    color: #78580a;
    border: 1.5px solid rgba(212,160,23,0.4);
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* بطاقة الاجتماع المعتمدة (حدود ذهبية ناعمة) */
.meeting-card.completed_approved {
    border-right: 4px solid #d4a017 !important;
    background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(255,248,220,0.4)) !important;
}

.meeting-card h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-slate);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.meeting-card h4:hover {
    color: var(--accent-blue);
}

.meeting-card-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.meeting-card-meta div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.meeting-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-light);
    padding-top: 12px;
    margin-top: 6px;
}

.meeting-footer-stats {
    display: flex;
    gap: 12px;
    font-size: 11.5px;
    color: var(--text-muted);
}

.meeting-footer-stats span strong {
    color: var(--primary-slate);
}

/* --------------------------------------------------------------------
   تبويب المخرجات (Outcomes Tab & Dynamic slider)
   -------------------------------------------------------------------- */
.search-filter-box {
    display: flex;
    gap: 12px;
    width: 100%;
}

.search-input-wrapper {
    position: relative;
    flex-grow: 1;
}

.search-input-wrapper i {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 13px;
}

.search-input-wrapper input {
    width: 100%;
    background-color: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 8px 36px 8px 14px;
    font-family: inherit;
    font-size: 12.5px;
    outline: none;
    transition: var(--transition-smooth);
}

.search-input-wrapper input:focus {
    background-color: #ffffff;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px var(--accent-blue-dim);
}

.search-filter-box select {
    background-color: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 8px 14px;
    font-family: inherit;
    font-size: 12.5px;
    outline: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.search-filter-box select:focus {
    border-color: var(--accent-blue);
}

.outcomes-table-panel {
    padding: 10px;
}

.outcomes-table th {
    font-size: 12px;
    font-weight: 700;
}

.outcomes-table td {
    vertical-align: middle;
}

.outcomes-table td select.status-select {
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    font-family: inherit;
    font-size: 11.5px;
    background-color: #ffffff;
    cursor: pointer;
}

/* عمود النسبة التفاعلي */
.progress-slider-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.progress-slider {
    flex-grow: 1;
    height: 6px;
    accent-color: var(--accent-blue);
    cursor: pointer;
}

.progress-val-text {
    font-family: monospace;
    font-weight: 700;
    font-size: 12px;
    min-width: 32px;
    text-align: left;
}

/* شارات الألوان النابضة */
.governance-pill {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-block;
    text-align: center;
    min-width: 80px;
}

.pill-green { background-color: var(--gov-green-glow); color: var(--gov-green); border: 1px solid var(--gov-green); }
.pill-yellow { background-color: var(--gov-yellow-glow); color: var(--gov-yellow); border: 1px solid var(--gov-yellow); }
.pill-orange { 
    background-color: var(--gov-orange-glow); 
    color: var(--gov-orange); 
    border: 1px solid var(--gov-orange);
    animation: orange-pulse 2.2s infinite;
}
.pill-red { 
    background-color: var(--gov-red-glow); 
    color: var(--gov-red); 
    border: 1px solid var(--gov-red); 
    animation: red-pulse 1.8s infinite;
}
.pill-grey { background-color: var(--gov-grey-glow); color: var(--gov-grey); border: 1px solid var(--gov-grey); }
.pill-blue { background-color: var(--gov-blue-glow); color: var(--gov-blue); border: 1px solid var(--gov-blue); }

.outcome-meta-subtext {
    font-size: 10.5px;
    color: var(--text-muted);
    display: block;
    margin-top: 4px;
}

/* قائمة التبعيات والأزرار الفرعية */
.tags-list-small {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

.tag-badge-small {
    font-size: 9.5px;
    font-weight: 600;
    background-color: #f1f5f9;
    color: var(--text-muted);
    padding: 1px 6px;
    border-radius: 4px;
}

.dep-list-small {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dep-item-small {
    font-size: 10.5px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.dep-bullet {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

/* زر الحفظ الأخضر الجميل */
.btn-save-row {
    background-color: var(--gov-green-glow);
    color: var(--gov-green);
    border: 1px solid var(--gov-green);
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-save-row:hover {
    background-color: var(--gov-green);
    color: #ffffff;
}

/* --------------------------------------------------------------------
   تبويب الربط الاستراتيجي (Strategic Map Tree)
   -------------------------------------------------------------------- */
.strategy-intro-card {
    background: var(--primary-slate-light);
    color: #ffffff;
    border-radius: var(--radius-soft);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.intro-icon {
    font-size: 40px;
    color: #60a5fa;
}

.intro-text h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.intro-text p {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.4;
}

.strategy-map-container {
    background: var(--card-glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--card-glass-border);
    border-radius: var(--radius-soft);
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    min-height: 400px;
}

.strategy-meeting-node {
    background-color: #ffffff;
    border: 1px solid var(--border-light);
    border-right: 5px solid var(--accent-blue);
    border-radius: 10px;
    padding: 16px;
    box-shadow: var(--shadow-soft);
}

.strategy-meeting-node h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-slate);
    margin-bottom: 8px;
}

.strategy-outcomes-branch {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-right: 40px;
    position: relative;
}

.strategy-outcomes-branch::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: -24px;
    width: 2px;
    background-color: #cbd5e1;
}

.strategy-outcome-node {
    background-color: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 12px 16px;
    box-shadow: var(--shadow-soft);
    position: relative;
}

.strategy-outcome-node::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -24px;
    width: 24px;
    height: 2px;
    background-color: #cbd5e1;
}

.strategy-outcome-node h5 {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--primary-slate);
}

.strategy-node-meta {
    display: flex;
    gap: 12px;
    margin-top: 6px;
    font-size: 10.5px;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------
   تبويب الإعدادات (Settings Panel List)
   -------------------------------------------------------------------- */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.full-width-card {
    grid-column: 1 / -1;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.form-group label {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-slate);
}

.form-group input, .form-group textarea, .form-group select {
    background-color: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 8px 12px;
    font-family: inherit;
    font-size: 12.5px;
    outline: none;
    transition: var(--transition-smooth);
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    background-color: #ffffff;
    border-color: var(--accent-blue);
}

.panel-divider {
    border: none;
    border-top: 1px solid var(--border-light);
    margin: 16px 0;
}

.settings-list-items {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.settings-list-items li {
    background-color: #f8fafc;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 12px;
}

.settings-list-items li strong {
    font-weight: 700;
    display: block;
    color: var(--primary-slate);
}

.settings-list-items li span {
    font-size: 11px;
    color: var(--text-muted);
}

.tags-badge-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-pill-large {
    font-size: 11px;
    font-weight: 700;
    background-color: var(--accent-blue-dim);
    color: var(--accent-blue);
    padding: 4px 12px;
    border-radius: 6px;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

/* --------------------------------------------------------------------
   المودالات المنبثقة (Premium Modals)
   -------------------------------------------------------------------- */
.modal-overlay {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    z-index: 2500;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    background-color: #ffffff;
    border-radius: var(--radius-soft);
    box-shadow: var(--shadow-medium);
    width: 90%;
    max-width: 580px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-container form {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow: hidden;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.large-modal {
    max-width: 820px;
}

.modal-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-slate);
}

.close-modal-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
}

.close-modal-btn:hover {
    color: var(--text-main);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex-grow: 1;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.bg-slate {
    background-color: var(--primary-slate);
    color: #ffffff;
}

.bg-slate h3 {
    color: #ffffff;
}

.bg-slate .close-modal-btn {
    color: #cbd5e1;
}

/* حقول النموذج المتوازية */
.form-row {
    display: flex;
    gap: 16px;
}

.col-6 { width: 50%; }
.col-12 { width: 100%; }

.bg-disabled {
    background-color: #f1f5f9 !important;
    color: var(--text-muted);
    cursor: not-allowed;
}

/* بنود الديناميكية الفراغات */
.form-section {
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
    background-color: #f8fafc;
}

.section-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.section-title-bar h4 {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--primary-slate);
}

.dynamic-inputs-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dynamic-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.dynamic-row input, .dynamic-row select {
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 6px 12px;
    font-family: inherit;
    font-size: 12px;
    flex-grow: 1;
    outline: none;
}

.btn-remove-row {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--gov-red);
    cursor: pointer;
    padding: 0 4px;
}

/* ميكانيكية الحضور */
.col-att {
    flex-grow: 1;
}

.att-type-select {
    max-width: 160px;
}

.hidden {
    display: none !important;
}

/* تفاصيل المودال المتقدم */
.meeting-details-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    font-size: 12.5px;
    background-color: #f8fafc;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    margin-bottom: 16px;
}

.meeting-details-desc-box {
    margin-bottom: 20px;
}

.meeting-details-desc-box strong {
    font-size: 12.5px;
    display: block;
    margin-bottom: 4px;
}

.meeting-details-desc-box p {
    font-size: 12.5px;
    color: #475569;
    text-align: justify;
}

.meeting-details-triple-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.details-section-card {
    background-color: #f8fafc;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 14px;
}

.details-section-card h4 {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--primary-slate);
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 6px;
}

.details-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 11.5px;
}

.details-list li {
    padding: 4px 0;
    color: #475569;
}

.meeting-details-outcomes-panel {
    border-top: 1px solid var(--border-light);
    padding-top: 16px;
}

.checkbox-list-container {
    max-height: 120px;
    overflow-y: auto;
    border: 1px solid #cbd5e1;
    background-color: #ffffff;
    border-radius: 6px;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.checkbox-list-container label {
    font-size: 11.5px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-list-container input {
    cursor: pointer;
}

/* --------------------------------------------------------------------
   تنبيهات النظام المنبثقة (Dynamic Toast Alerts)
   -------------------------------------------------------------------- */
.alert-container {
    position: fixed;
    bottom: 24px;
    left: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
}

.alert-toast {
    background-color: #1e293b;
    color: #ffffff;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 280px;
    max-width: 420px;
    transform: translateY(20px);
    opacity: 0;
    animation: toast-in 0.3s forwards;
    border-right: 4px solid #94a3b8;
}

.alert-toast.success { border-right-color: var(--gov-green); }
.alert-toast.error { border-right-color: var(--gov-red); }

@keyframes toast-in {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* --------------------------------------------------------------------
   الحركات الرسومية (Animations)
   -------------------------------------------------------------------- */
@keyframes pulse-green {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

@keyframes orange-pulse {
    0% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.3); }
    70% { box-shadow: 0 0 0 6px rgba(249, 115, 22, 0); }
    100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); }
}

@keyframes red-pulse {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* التبديل السلس للتبويبات */
.tab-content {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.tab-content.active {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* رموز الاجتماعات والمخرجات لزيادة الحوكمة والوضوح المنهجي */
.sijill-code-badge {
    display: inline-block;
    background: rgba(37, 99, 235, 0.1);
    color: #3b82f6;
    border: 1px solid rgba(37, 99, 235, 0.25);
    padding: 2px 8px;
    border-radius: 6px;
    font-family: monospace;
    font-weight: 700;
    font-size: 13px;
    margin-left: 8px;
    vertical-align: middle;
}

.sijill-outcome-code-badge {
    display: inline-block;
    background: rgba(244, 63, 94, 0.08);
    color: #f43f5e;
    border: 1px solid rgba(244, 63, 94, 0.2);
    padding: 2px 8px;
    border-radius: 6px;
    font-family: monospace;
    font-weight: 700;
    font-size: 13px;
    margin-left: 8px;
    vertical-align: middle;
}

/* شارات وأزرار التصعيد الإداري المتميزة */
.escalation-warning-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.25);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    margin-right: 8px;
    animation: red-pulse 2s infinite;
    vertical-align: middle;
}

.btn-escalate-row {
    background: rgba(249, 115, 22, 0.08);
    color: #f97316;
    border: 1px solid rgba(249, 115, 22, 0.25);
    padding: 6px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    transition: var(--transition-smooth);
    margin-right: 4px;
}

.btn-escalate-row:hover {
    background: #f97316;
    color: #fff;
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.2);
}

.escalation-log-item {
    background: rgba(255, 255, 255, 0.6);
    border-right: 4px solid #ef4444;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-soft);
}

.escalation-log-item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 12px;
    color: var(--text-muted);
}


/* --------------------------------------------------------------------
   تنسيقات نظام الإشعارات المتكامل ومبدل المستخدمين
   -------------------------------------------------------------------- */
.top-bar-controls-area {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* زر الجرس وتصميم عداد الإشعارات غير المقروءة */
.notifications-bell-wrapper {
    position: relative;
}

.btn-notifications-bell {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    color: var(--primary-slate);
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    position: relative;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-soft);
}

.btn-notifications-bell:hover {
    background: #ffffff;
    color: var(--accent-blue);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.bell-unread-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--gov-red);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    font-family: monospace;
    animation: red-pulse 2s infinite;
}

.bell-unread-count.hidden {
    display: none !important;
}

/* لوحة الإشعارات العائمة الزجاجية */
.notifications-dropdown-panel {
    position: absolute;
    top: 52px;
    left: 0;
    width: 380px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: var(--radius-soft);
    box-shadow: var(--shadow-medium);
    z-index: 1100;
    display: none;
    flex-direction: column;
    animation: floatIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transform-origin: top left;
}

.notifications-dropdown-panel.active {
    display: flex;
}

.notifications-dropdown-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notifications-dropdown-header h3 {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-slate);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-read-all-notifications {
    background: none;
    border: none;
    color: var(--accent-blue);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition-smooth);
}

.btn-read-all-notifications:hover {
    color: var(--primary-slate);
    text-decoration: underline;
}

/* جسم القائمة وعناصر الإشعارات */
.notifications-dropdown-body {
    max-height: 350px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding: 8px 0;
}

.notification-item {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    display: flex;
    gap: 12px;
    transition: var(--transition-smooth);
    position: relative;
    cursor: pointer;
}

.notification-item:hover {
    background: rgba(255, 255, 255, 0.5);
}

.notification-item.unread {
    background: rgba(37, 99, 235, 0.03);
    border-right: 3px solid var(--accent-blue);
}

.notification-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 14px;
    flex-shrink: 0;
}

/* أنواع الإشعارات وألوانها */
.notification-item.meeting_invitation .notification-icon-wrapper {
    background: rgba(37, 99, 235, 0.08);
    color: var(--accent-blue);
}

.notification-item.escalation .notification-icon-wrapper {
    background: rgba(239, 68, 68, 0.08);
    color: var(--gov-red);
}

.notification-item.system .notification-icon-wrapper {
    background: rgba(249, 115, 22, 0.08);
    color: var(--gov-orange);
}

.notification-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.notification-item-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-slate);
}

.notification-item-message {
    font-size: 11px;
    color: #475569;
    line-height: 1.4;
    text-align: justify;
}

.notification-item-date {
    font-size: 9.5px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* زر الحذف الفردي الفاخر */
.btn-delete-notification {
    background: none;
    border: none;
    color: #cbd5e1;
    cursor: pointer;
    font-size: 13px;
    align-self: center;
    padding: 4px;
    transition: var(--transition-smooth);
    opacity: 0;
}

.notification-item:hover .btn-delete-notification {
    opacity: 1;
}

.btn-delete-notification:hover {
    color: var(--gov-red);
}

.notification-empty-state {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.notification-empty-state i {
    font-size: 32px;
    color: #cbd5e1;
}

/* مبدل المستخدمين في السايدبار */
.user-profile-switcher-card {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(226, 232, 240, 0.6);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: var(--shadow-soft);
}

.user-profile-switcher-card label {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--primary-slate);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.active-user-switcher-select {
    width: 100%;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 6px 10px;
    font-family: inherit;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--primary-slate);
    outline: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.active-user-switcher-select:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* ====================================================================
                  البوت الإجرائي الموجه (Chatbot Styles)
==================================================================== */

.chatbot-fab {
    position: fixed;
    left: 30px;
    bottom: 30px;
    background: linear-gradient(135deg, var(--accent-blue), #1d4ed8);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    padding: 10px;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.35);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1060;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.chatbot-fab:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.45);
}

.chatbot-widget {
    position: fixed;
    left: 30px;
    bottom: 105px;
    width: 360px;
    height: 420px;
    max-height: calc(100vh - 140px);
    z-index: 1060;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-glass-border);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chatbot-widget.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.chatbot-header {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.chatbot-bot-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatbot-bot-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-blue);
    font-size: 18px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.chatbot-bot-meta h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.chatbot-bot-meta span {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
    display: block;
}

.chatbot-close-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    cursor: pointer;
    transition: color 0.2s;
}

.chatbot-close-btn:hover {
    color: white;
}

.chatbot-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(248, 250, 252, 0.4);
}

.chatbot-messages {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-message {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.5;
    word-break: break-word;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.chat-message.bot {
    align-self: flex-start;
    background: white;
    color: var(--primary-slate);
    border-top-left-radius: 2px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.chat-message.user {
    align-self: flex-end;
    background: var(--accent-blue);
    color: white;
    border-top-right-radius: 2px;
    text-align: right;
}

.chatbot-options-area {
    padding: 10px 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-top: 1px solid var(--card-glass-border);
    background: rgba(255, 255, 255, 0.6);
}

.chatbot-btn {
    background: white;
    border: 1px solid var(--card-glass-border);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-slate);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.chatbot-btn:hover {
    background: var(--accent-blue);
    color: white;
    border-color: var(--accent-blue);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.chatbot-input-area {
    padding: 10px 15px;
    display: flex;
    gap: 10px;
    border-top: 1px solid var(--card-glass-border);
    background: white;
}

.chatbot-input-area input {
    flex: 1;
    border: 1px solid var(--card-glass-border);
    border-radius: 24px;
    padding: 8px 16px;
    font-size: 12px;
    outline: none;
    background: #f8fafc;
    transition: all 0.2s;
}

.chatbot-input-area input:focus {
    border-color: var(--accent-blue);
    background: white;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.chatbot-send-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--accent-blue);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.chatbot-send-btn:hover {
    background: #1d4ed8;
    transform: scale(1.05);
}

/* بطاقات تفاعلية ممتازة داخل المحادثة */
.chatbot-card {
    background: white;
    border-radius: 8px;
    border: 1px solid var(--card-glass-border);
    padding: 10px 12px;
    margin-top: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.chatbot-card-header {
    font-weight: 600;
    font-size: 12px;
    color: var(--primary-slate);
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 5px;
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-card-body {
    font-size: 11px;
    color: #475569;
    line-height: 1.6;
}

.chatbot-card-field {
    margin-bottom: 4px;
}

.chatbot-card-field strong {
    color: var(--primary-slate);
}

.chatbot-badge {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 600;
    color: white;
}

.chatbot-badge.green { background-color: var(--status-green); }
.chatbot-badge.yellow { background-color: var(--status-yellow); color: var(--primary-slate); }
.chatbot-badge.orange { background-color: var(--status-orange); }
.chatbot-badge.red { background-color: var(--status-red); }
.chatbot-badge.grey { background-color: var(--status-grey); }

.chatbot-entity-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #f1f5f9;
}
.chatbot-entity-row:last-child {
    border-bottom: none;
}






/* ====================================================================
             تعديلات هوية سِجل الفاخرة - المظهر العصري Skydash Light
==================================================================== */

:root {
    --primary-slate: #1f2937;
    --accent-indigo: #4b49ac; /* Skydash Primary Purple/Indigo! */
    --accent-indigo-gradient: linear-gradient(135deg, #4b49ac, #7878d6);
    --app-bg: #f5f7ff; /* Skydash light gray-blue canvas! */
    
    --bg-light: #f5f7ff;
    --card-glass-bg: #ffffff;
    --card-glass-border: #e2e8f0;
    --text-main: #2b2b2b;
    --text-muted: #797878;
    --border-light: #e2e8f0;

    /* Soft Governance Badges */
    --status-green-bg: #ecfdf5;
    --status-green-text: #059669;
    
    --status-yellow-bg: #fef3c7;
    --status-yellow-text: #d97706;
    
    --status-orange-bg: #ffedd5;
    --status-orange-text: #ea580c;
    
    --status-red-bg: #fee2e2;
    --status-red-text: #dc2626;
    
    --status-grey-bg: #f3f4f6;
    --status-grey-text: #4b5563;

    --status-blue-bg: #eff6ff;
    --status-blue-text: #2563eb;
}

/* تحديث الكانفاس الرئيسي والخلفية */
body {
    background-color: var(--app-bg) !important;
    color: var(--text-main) !important;
    padding-top: 70px !important; /* Spacing for fixed Top Navbar! */
}

.app-container {
    background-color: var(--app-bg) !important;
    display: flex;
    min-height: calc(100vh - 70px);
    width: 100vw;
}

/* الهيدر الأفقي العلوي الثابت بالكامل */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 1050;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

.navbar-brand-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 200px;
}

.navbar-brand-wrapper h2 {
    font-size: 20px;
    font-weight: 800;
    color: var(--accent-indigo);
}

.brand-logo-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--accent-indigo-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.navbar-menu-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-grow: 1;
    padding-right: 24px;
}

.navbar-search-wrapper {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 280px;
}

.navbar-search-wrapper input {
    background: none;
    border: none;
    outline: none;
    width: 100%;
    font-size: 12px;
    color: var(--text-main);
    font-family: inherit;
}

.navbar-search-wrapper .search-icon {
    color: #94a3b8;
    font-size: 14px;
}

.navbar-controls-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* كنسلة المظهر الزمردي والسابق بالكامل */
.main-content {
    margin: 0 !important;
    height: calc(100vh - 70px) !important;
    padding: 24px !important;
    overflow-y: auto;
    flex-grow: 1;
    width: calc(100% - 260px) !important;
    margin-right: 260px !important; /* Fixed right-aligned spacing! */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* القائمة الجانبية المحدثة - تقع أسفل الهيدر مباشرة */
.sidebar {
    position: fixed !important;
    top: 70px !important;
    right: 0 !important;
    height: calc(100vh - 70px) !important;
    width: 260px !important;
    background-color: #ffffff !important;
    color: var(--primary-slate) !important;
    padding: 24px 16px !important;
    border-radius: 0 !important;
    border: none !important;
    border-left: 1px solid #e2e8f0 !important;
    box-shadow: -2px 0 15px rgba(0, 0, 0, 0.02) !important;
    z-index: 1040 !important;
    margin: 0 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* زر التوسيع والتقليص الجانبي */
.sidebar-toggle-btn {
    background: #f8fafc;
    border: 1px solid var(--border-light);
    color: var(--accent-indigo);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    margin-right: auto;
    margin-bottom: 20px;
}

.sidebar-toggle-btn:hover {
    background: var(--accent-indigo-gradient);
    color: white;
}

/* انكماش القائمة الجانبية المطور */
.sidebar.collapsed {
    width: 80px !important;
}

.sidebar.collapsed ~ .main-content {
    margin-right: 80px !important;
    width: calc(100% - 80px) !important;
}

.sidebar.collapsed .brand-text,
.sidebar.collapsed .nav-item span,
.sidebar.collapsed .user-profile-switcher-card label,
.sidebar.collapsed .user-profile-switcher-card select,
.sidebar.collapsed .brand h2,
.sidebar.collapsed .brand span {
    display: none !important;
}

.sidebar.collapsed .brand {
    justify-content: center !important;
    padding: 0 !important;
    margin-bottom: 30px !important;
}

.sidebar.collapsed .nav-item {
    justify-content: center !important;
    padding: 14px 0 !important;
    gap: 0 !important;
}

.sidebar.collapsed .sidebar-toggle-btn {
    margin-right: 0 !important;
    transform: rotate(180deg);
}

/* عناصر القائمة الجانبية */
.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.nav-item {
    background: none;
    border: none;
    outline: none;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    color: #6c757d;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-align: right;
    transition: all 0.2s;
    width: 100%;
}

.nav-item:hover {
    background-color: #f8fafc;
    color: var(--accent-indigo);
}

.nav-item.active {
    background: var(--accent-indigo-gradient) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(75, 73, 172, 0.25) !important;
}

.nav-item.active i {
    color: #ffffff !important;
}

/* بطاقة الحساب وهوية المدير الفاخرة */
.user-profile-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 6px 14px;
    border-radius: 50px;
}

.profile-text {
    text-align: right;
}

.profile-role {
    font-size: 9px;
    color: #94a3b8;
    display: block;
    font-weight: 600;
}

.profile-text h4 {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-indigo);
    margin: 0;
}

.profile-avatar-wrapper {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--accent-indigo);
}

.profile-avatar-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* الهامبرغر على الموبايل */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    color: var(--accent-indigo);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.hamburger-btn:hover {
    background: #f1f5f9;
}

/* --------------------------------------------------------------------
             لوحة بطل البيانات المحدثة (Dashboard Hero Section)
-------------------------------------------------------------------- */
.dashboard-hero-section {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

/* كرت الترحيب البنفسجي اللافندر الفاخر */
.welcome-card {
    background-color: #e4ecfa;
    border-radius: 20px;
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(75, 73, 172, 0.08);
}

.welcome-card-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 2;
}

.welcome-title {
    font-size: 24px;
    font-weight: 700;
    color: #2c2a75;
}

.welcome-subtitle {
    font-size: 13px;
    color: #4b49ac;
    line-height: 1.6;
}

.welcome-weather-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 10px 16px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    margin-top: 10px;
}

.weather-meta {
    display: flex;
    flex-direction: column;
}

.weather-temp {
    font-size: 16px;
    font-weight: 700;
    color: #2c2a75;
}

.weather-city {
    font-size: 10px;
    color: #4b49ac;
}

.weather-icon {
    font-size: 20px;
    color: #f59e0b;
}

.welcome-card-illustration {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.welcome-card-illustration img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* شبكة الكروت الأربعة الفاخرة */
.skydash-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.skydash-card {
    border-radius: 16px;
    padding: 20px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 120px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s;
}

.skydash-card:hover {
    transform: translateY(-2px);
}

.skydash-card-title {
    font-size: 11px;
    font-weight: 500;
    opacity: 0.9;
}

.skydash-card h3 {
    font-size: 28px;
    font-weight: 700;
    margin: 8px 0;
}

.skydash-card-desc {
    font-size: 9px;
    opacity: 0.85;
}

/* الألوان الأربعة الدقيقة من قالب Skydash المعتمد */
.skydash-blue { background-color: #7da0fa !important; }
.skydash-indigo { background-color: #4747a1 !important; }
.skydash-purple { background-color: #7978e9 !important; }
.skydash-coral { background-color: #f3797e !important; }

/* ألوان الرقابة والحالات - بنمط Soft Badges */
.status-pill.green, .chatbot-badge.green { background-color: var(--status-green-bg) !important; color: var(--status-green-text) !important; font-weight: 700 !important; border: 1px solid rgba(16, 185, 129, 0.2) !important; }
.status-pill.yellow, .chatbot-badge.yellow { background-color: var(--status-yellow-bg) !important; color: var(--status-yellow-text) !important; font-weight: 700 !important; border: 1px solid rgba(245, 158, 11, 0.2) !important; }
.status-pill.orange, .chatbot-badge.orange { background-color: var(--status-orange-bg) !important; color: var(--status-orange-text) !important; font-weight: 700 !important; border: 1px solid rgba(249, 115, 22, 0.2) !important; }
.status-pill.red, .chatbot-badge.red { background-color: var(--status-red-bg) !important; color: var(--status-red-text) !important; font-weight: 700 !important; border: 1px solid rgba(239, 68, 68, 0.2) !important; }
.status-pill.grey, .chatbot-badge.grey { background-color: var(--status-grey-bg) !important; color: var(--status-grey-text) !important; font-weight: 700 !important; border: 1px solid rgba(107, 114, 128, 0.2) !important; }
.status-pill.blue, .chatbot-badge.blue { background-color: var(--status-blue-bg) !important; color: var(--status-blue-text) !important; font-weight: 700 !important; border: 1px solid rgba(37, 99, 235, 0.2) !important; }
.chatbot-badge.gold { background: linear-gradient(135deg, rgba(212,160,23,0.18), rgba(240,192,64,0.1)) !important; color: #78580a !important; border: 1px solid rgba(212,160,23,0.35) !important; font-weight: 700 !important; }


/* البطاقات والتبويبات الفاخرة */
.tab-content {
    background-color: #ffffff !important;
    border-radius: 16px !important;
    border: none !important;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.04) !important;
    padding: 24px !important;
    margin-bottom: 24px !important;
}

.table-responsive {
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    border-radius: 8px !important;
}

/* تراكب التعتيم للقائمة الجانبية في الموبايل */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1030;
    transition: all 0.3s;
}

.sidebar-overlay.active {
    display: block;
}

/* التجاوبية المطلقة وإعادة توزيع الشاشة */
@media (max-width: 992px) {
    .dashboard-hero-section {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px !important;
    }
    
    .navbar-brand-wrapper {
        min-width: fit-content !important;
    }
    
    .navbar-menu-wrapper {
        padding-right: 12px !important;
    }
    
    .navbar-search-wrapper {
        display: none !important; /* Hide search bar in small mobile headers */
    }
    
    .sidebar {
        transform: translateX(100%) !important;
        position: fixed !important;
        top: 70px !important;
        right: 0 !important;
        height: calc(100vh - 70px) !important;
        width: 260px !important;
        z-index: 1045 !important;
        margin: 0 !important;
        border-radius: 0 !important;
        box-shadow: -4px 0 25px rgba(0, 0, 0, 0.1) !important;
    }
    
    .sidebar.open {
        transform: translateX(0) !important;
    }
    
    .main-content {
        margin-right: 0 !important;
        width: 100% !important;
        padding: 16px !important;
    }
    
    .hamburger-btn {
        display: flex !important;
    }
    
    .skydash-stats-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* جعل أزرار القوائم وحقول التفاعل مريحة للمس */
    input, select, textarea, button.btn {
        min-height: 44px !important;
        padding: 10px 16px !important;
    }
    
    .chatbot-widget {
        left: 15px !important;
        bottom: 95px !important;
        width: calc(100vw - 30px) !important;
        max-width: 360px !important;
    }
    
    .chatbot-fab {
        left: 15px !important;
        bottom: 20px !important;
    }
}

/* ====================================================================
                   بوابة تسجيل الدخول الفاخرة (Sijill Login Portal)
==================================================================== */

.login-page-body {
    background-color: var(--app-bg) !important;
    padding-top: 0 !important;
    margin: 0 !important;
    height: 100vh !important;
    width: 100vw !important;
    overflow: hidden !important;
    font-family: 'Cairo', sans-serif !important;
}

.login-wrapper {
    display: flex;
    height: 100vh;
    width: 100vw;
    direction: rtl;
}

/* الشق الأيمن التوضيحي/الهوية (Lavender Gradient Panel) */
.login-right-panel {
    width: 60%;
    background: linear-gradient(135deg, #4b49ac, #2c2a75);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px;
    color: white;
    position: relative;
    overflow: hidden;
}

.login-right-panel::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -20%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    pointer-events: none;
}

.login-right-panel::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -20%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    pointer-events: none;
}

.login-visual-container {
    max-width: 480px;
    text-align: center;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.login-visual-avatar {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.3);
    padding: 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    animation: float-avatar 4s ease-in-out infinite;
}

@keyframes float-avatar {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.login-visual-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.login-right-panel h1 {
    font-size: 32px;
    font-weight: 800;
    margin: 0;
    text-shadow: 0 4px 12px rgba(0,0,0,0.15);
    letter-spacing: 0.5px;
}

.login-right-panel p {
    font-size: 14px;
    opacity: 0.85;
    line-height: 1.8;
    margin: 0;
    font-weight: 300;
}

.login-pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    width: 100%;
    margin-top: 15px;
}

.login-pillar-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.login-pillar-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.login-pillar-card i {
    font-size: 18px;
    color: #e4ecfa;
}

.login-pillar-card span {
    font-size: 11px;
    font-weight: 600;
}

/* الشق الأيسر للتفاعل وتعبئة البيانات (Minimalist white Panel) */
.login-left-panel {
    width: 40%;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 80px;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.02);
}

.login-form-container {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.login-brand-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--accent-indigo-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(75, 73, 172, 0.2);
}

.login-brand-text h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--accent-indigo);
    margin: 0;
}

.login-brand-text span {
    font-size: 11px;
    color: var(--text-muted);
    display: block;
    margin-top: 2px;
}

.login-header-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.login-header-text h3 {
    font-size: 20px;
    font-weight: 700;
    color: #2b2b2b;
    margin: 0;
}

.login-header-text p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.login-form-group label {
    font-size: 12px;
    font-weight: 600;
    color: #4b5563;
}

.login-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.login-input-wrapper i {
    position: absolute;
    right: 16px;
    color: #94a3b8;
    font-size: 14px;
}

.login-input-wrapper input, .login-input-wrapper select {
    width: 100%;
    min-height: 48px !important;
    padding: 10px 42px 10px 16px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    font-size: 13px !important;
    font-family: inherit !important;
    outline: none !important;
    background-color: #f8fafc !important;
    transition: all 0.2s !important;
    color: #2b2b2b !important;
}

.login-input-wrapper input:focus, .login-input-wrapper select:focus {
    border-color: var(--accent-indigo) !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(75, 73, 172, 0.08) !important;
}

.login-form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11.5px;
}

.login-remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4b5563;
    cursor: pointer;
}

.login-remember-me input {
    cursor: pointer;
}

.login-forgot-password {
    color: var(--accent-indigo);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
}

.login-forgot-password:hover {
    opacity: 0.8;
}

.login-submit-btn {
    width: 100%;
    min-height: 48px;
    border-radius: 12px;
    border: none;
    background: var(--accent-indigo-gradient);
    color: white;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(75, 73, 172, 0.25);
    transition: all 0.2s;
}

.login-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(75, 73, 172, 0.35);
}

.login-submit-btn:active {
    transform: translateY(0);
}

.login-footer-info {
    font-size: 11px;
    color: #94a3b8;
    text-align: center;
    margin-top: 10px;
    line-height: 1.6;
}

/* التجاوبية المطلقة لصفحة تسجيل الدخول */
@media (max-width: 992px) {
    .login-right-panel {
        width: 50%;
        padding: 40px;
    }
    .login-left-panel {
        width: 50%;
        padding: 40px 50px;
    }
}

@media (max-width: 768px) {
    .login-wrapper {
        background-color: var(--app-bg);
        justify-content: center;
        align-items: center;
        padding: 20px;
    }
    .login-right-panel {
        display: none !important;
    }
    .login-left-panel {
        width: 100% !important;
        max-width: 440px;
        height: auto !important;
        border-radius: 20px;
        padding: 40px 30px !important;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05) !important;
        border: 1px solid #e2e8f0;
        background-color: #ffffff !important;
    }
}

/* ====================================================================
                   قائمة الملف الشخصي المنسدلة (Profile Dropdown Menu)
==================================================================== */

.user-profile-chip {
    position: relative; /* لتمكين التموضع المطلق للقائمة المنسدلة */
}

.profile-dropdown-menu {
    position: absolute;
    top: 52px;
    left: 0;
    width: 190px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: none; /* مخفية افتراضياً */
    flex-direction: column;
    padding: 8px 0;
    z-index: 1070;
    animation: dropdown-fade-in 0.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.profile-dropdown-menu.active {
    display: flex;
}

@keyframes dropdown-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.profile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    font-size: 13px;
    color: #4b5563;
    background: none;
    border: none;
    width: 100%;
    text-align: right;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.profile-dropdown-item:hover {
    background-color: #f8fafc;
    color: var(--accent-indigo);
}

.profile-dropdown-item.logout {
    color: #dc2626;
}

.profile-dropdown-item.logout:hover {
    background-color: #fee2e2;
    color: #dc2626;
}

.profile-dropdown-divider {
    height: 1px;
    background-color: #f1f5f9;
    margin: 6px 0;
}

/* ====================================================================
                   إدارة الملف الشخصي (Profile Management Tab CSS)
==================================================================== */

.profile-container {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.03);
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-bottom: 24px;
    border: 1px solid #f1f5f9;
}

/* عمود الأفاتار والصورة */
.profile-avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
    border-left: 1px solid #f1f5f9;
    padding-left: 20px;
}

.profile-current-avatar-wrapper {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 4px solid var(--accent-indigo);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(75, 73, 172, 0.15);
    background-color: #f8fafc;
}

.profile-current-avatar-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar-select-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    width: 100%;
    margin-top: 10px;
}

.profile-avatar-select-option {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.2s;
    background-color: #f8fafc;
}

.profile-avatar-select-option:hover {
    transform: scale(1.1);
}

.profile-avatar-select-option.selected {
    border-color: var(--accent-indigo);
    box-shadow: 0 0 0 3px rgba(75, 73, 172, 0.15);
}

.profile-avatar-select-option img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-file-upload-btn {
    background-color: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 11.5px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.profile-file-upload-btn:hover {
    background-color: #f1f5f9;
    border-color: #94a3b8;
    color: #475569;
}

/* عمود التفاصيل والنموذج */
.profile-details-section {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.profile-details-section h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-slate);
    margin: 0;
}

.profile-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.profile-form-group.full-width {
    grid-column: span 2;
}

.profile-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-form-group label {
    font-size: 12.5px;
    font-weight: 600;
    color: #4b5563;
}

.profile-form-group input, .profile-form-group select {
    width: 100%;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    background-color: #f8fafc;
    transition: all 0.2s;
    color: #2b2b2b;
}

.profile-form-group input:focus, .profile-form-group select:focus {
    border-color: var(--accent-indigo);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(75, 73, 172, 0.08);
}

.profile-form-group input:disabled {
    background-color: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
}

.profile-submit-btn {
    min-height: 44px;
    border-radius: 10px;
    border: none;
    background: var(--accent-indigo-gradient);
    color: white;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(75, 73, 172, 0.2);
    transition: all 0.2s;
    width: fit-content;
    padding: 0 24px;
    align-self: flex-start;
}

.profile-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(75, 73, 172, 0.3);
}

@media (max-width: 768px) {
    .profile-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 20px;
    }
    .profile-avatar-section {
        border-left: none;
        border-bottom: 1px solid #f1f5f9;
        padding-left: 0;
        padding-bottom: 20px;
    }
    .profile-form-grid {
        grid-template-columns: 1fr;
    }
    .profile-form-group.full-width {
        grid-column: span 1;
    }
    .profile-submit-btn {
        width: 100%;
    }
}


/* ====================================================================
   تنسيقات منصة الربط الاستراتيجي المتكاملة (Strategic Linking Styles)
   ==================================================================== */

/* شريط المؤشرات الاستراتيجية العلوي */
.strategy-metrics-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.strategy-metric-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.strategy-metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

.strategy-metric-card .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background-color: #f1f5f9;
}

.strategy-metric-card.text-indigo .stat-icon {
    background-color: #e0e7ff;
    color: #4b49ac;
}

.strategy-metric-card.text-green .stat-icon {
    background-color: #d1fae5;
    color: #10b981;
}

.strategy-metric-card.text-purple .stat-icon {
    background-color: #f3e8ff;
    color: #a855f7;
}

.strategy-metric-card .stat-meta h4 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 4px;
    color: #1e293b;
    font-family: 'Cairo';
}

.strategy-metric-card .stat-meta span {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

/* شريط التنقل الفرعي للربط الاستراتيجي */
.strategy-subtabs-nav {
    display: flex;
    background: #f1f5f9;
    padding: 6px;
    border-radius: 12px;
    gap: 8px;
    margin-bottom: 24px;
    width: fit-content;
}

.strat-subtab-btn {
    border: none;
    background: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: 'Cairo';
    font-size: 13.5px;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.strat-subtab-btn:hover {
    color: #4b49ac;
    background-color: rgba(75, 73, 172, 0.05);
}

.strat-subtab-btn.active {
    background-color: #ffffff;
    color: #4b49ac;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* محتوى التبويبات الفرعية */
.strat-subtab-content {
    display: none;
    animation: fadeInTab 0.35s ease;
}

.strat-subtab-content.active {
    display: block;
}

@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* شبكة التخطيط */
.strategy-layout-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

/* بطاقات الجهات الحكومية والاستثمارية */
.entity-compliance-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.entity-compliance-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    transition: all 0.2s ease;
}

.entity-compliance-card:hover {
    background-color: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.entity-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.entity-card-header h4 {
    font-size: 14.5px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.entity-compliance-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
}

.entity-progress-bar-wrapper {
    margin-bottom: 12px;
}

.entity-progress-bar {
    height: 6px;
    background-color: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 4px;
}

.entity-progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}

.entity-card-footer {
    display: flex;
    justify-content: space-between;
    font-size: 11.5px;
    color: #64748b;
}

.entity-card-footer span strong {
    color: #334155;
}

.entity-status-distribution {
    display: flex;
    gap: 4px;
}

.dist-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

/* ملف أداء الموظف المسؤول */
.employee-performance-card {
    background: linear-gradient(135deg, #f8fafc, #edf2f9);
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.employee-profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 0 auto 12px;
    object-fit: cover;
    display: block;
}

.employee-performance-card h4 {
    font-size: 17px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 4px;
}

.employee-performance-card .role-badge {
    font-size: 11.5px;
    color: #64748b;
    font-weight: 600;
    display: block;
    margin-bottom: 16px;
}

.employee-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.employee-rating-badge.excellent {
    background-color: #d1fae5;
    color: #065f46;
}

.employee-rating-badge.warning {
    background-color: #fee2e2;
    color: #991b1b;
}

.employee-rating-badge.good {
    background-color: #e0f2fe;
    color: #075985;
}

.employee-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    border-top: 1px dashed #cbd5e1;
    padding-top: 16px;
}

.emp-stat-box {
    display: flex;
    flex-direction: column;
}

.emp-stat-box span {
    font-size: 11px;
    color: #64748b;
    margin-bottom: 4px;
}

.emp-stat-box strong {
    font-size: 16px;
    color: #1e293b;
    font-weight: 800;
}

/* شبكة مؤشرات الوسوم الموضوعية */
.tags-performance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.tag-perf-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.tag-perf-card:hover {
    transform: translateY(-2px);
    border-color: #a855f7;
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.08);
}

.tag-perf-card.selected {
    border-color: #a855f7;
    background-color: rgba(168, 85, 247, 0.02);
    box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.15);
}

.tag-perf-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.tag-perf-header h4 {
    font-size: 14px;
    font-weight: 700;
    color: #a855f7;
    background: rgba(168, 85, 247, 0.08);
    padding: 4px 10px;
    border-radius: 6px;
    margin: 0;
}

.tag-perf-header span {
    font-size: 11.5px;
    color: #64748b;
}

/* كاشف الاختناقات والتعثر التتابعي */
.bottlenecks-alert-box {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.bottleneck-alert-item {
    background: #fff8f8;
    border-right: 4px solid var(--status-red);
    border-left: 1px solid rgba(239, 68, 68, 0.15);
    border-top: 1px solid rgba(239, 68, 68, 0.15);
    border-bottom: 1px solid rgba(239, 68, 68, 0.15);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.bottleneck-icon-warning {
    color: var(--status-red);
    font-size: 20px;
    animation: pulseGlow 1.5s infinite;
    margin-top: 2px;
}

@keyframes pulseGlow {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

.bottleneck-meta {
    flex-grow: 1;
}

.bottleneck-meta h4 {
    font-size: 13.5px;
    font-weight: 700;
    color: #991b1b;
    margin: 0 0 6px 0;
}

.bottleneck-meta p {
    font-size: 12.5px;
    color: #334155;
    margin: 0 0 8px 0;
}

.bottleneck-reason-badge {
    background: #fee2e2;
    color: #991b1b;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
    display: inline-block;
}

/* شجرة تدفق الاعتماديات والتتابعات */
.dependency-flow-tree {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 10px;
}

.dep-flow-node {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 14px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.dep-flow-node-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.dep-flow-node-header strong {
    font-size: 12px;
    background-color: #f1f5f9;
    padding: 2px 8px;
    border-radius: 6px;
    color: #4b49ac;
}

.dep-flow-node p {
    font-size: 12.5px;
    color: #1e293b;
    line-height: 1.5;
    margin: 0 0 8px 0;
}

.dep-flow-connector {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #cbd5e1;
    font-size: 18px;
    margin: -10px 0;
}

.dep-flow-node.parent-node {
    border-right: 4px solid #10b981;
}

.dep-flow-node.child-node {
    border-right: 4px solid #f97316;
}

.dep-flow-node.blocked-child {
    border-right: 4px solid #ef4444;
    background: #fffbfa;
}

.strat-tag-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    background-color: rgba(168, 85, 247, 0.08);
    color: #a855f7;
    margin-right: 4px;
}

/* ====================================================================
   نظام الحضور الذكي والمسح بالرمز (QR Code Attendance Styling)
   ==================================================================== */
.meeting-details-qr-scanned-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 25px;
    margin-bottom: 25px;
}

@media (max-width: 768px) {
    .meeting-details-qr-scanned-section {
        grid-template-columns: 1fr;
    }
}

/* كرت رمز الاستجابة السريعة (QR Card) */
.details-section-card.qr-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.qr-code-display-box {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 12px;
    margin: 15px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 170px;
    height: 170px;
}

.qr-code-display-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.qr-explanation {
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 15px;
}

.qr-actions {
    display: flex;
    gap: 8px;
    width: 100%;
    justify-content: center;
}

.qr-actions button {
    flex-grow: 1;
    white-space: nowrap;
}

/* كرت الأرشيف الحوكمي والمسجلين بالهاتف */
.details-section-card.scanned-attendees-card {
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.scanned-list-wrapper {
    flex-grow: 1;
    overflow-y: auto;
    max-height: 250px;
    margin-top: 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px dashed rgba(168, 85, 247, 0.2);
    padding: 10px;
}

/* تايم لاين وقائمة الحاضرين بالهاتف */
.scanned-attendees-timeline {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.scanned-attendee-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.01);
    transition: all 0.2s;
}

.scanned-attendee-item:hover {
    border-color: #cbd5e1;
    transform: translateX(-2px);
    background-color: #fafafa;
}

.scanned-attendee-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: right;
}

.scanned-attendee-name {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--accent-indigo);
}

.scanned-attendee-title {
    font-size: 11.5px;
    color: #475569;
    font-weight: 500;
}

.scanned-attendee-contact {
    font-size: 10.5px;
    color: #64748b;
    font-family: var(--font-family);
}

.scanned-attendee-time {
    font-size: 11px;
    color: #94a3b8;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 50px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ====================================================================
   الأنشطة التفاعلية أثناء الاجتماع (Meeting Interactions Styles)
   ==================================================================== */
.meeting-details-interactions-panel {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(168, 85, 247, 0.15);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.03);
}

.interactions-split-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    min-height: 280px;
}

@media (max-width: 768px) {
    .interactions-split-layout {
        grid-template-columns: 1fr;
    }
}

/* الشريط الجانبي لقائمة الأنشطة */
.interactions-sidebar-menu {
    border-left: 1px solid var(--border-light);
    padding-left: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 380px;
    overflow-y: auto;
}

.interaction-sidebar-item {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    background: white;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-slate);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: right;
    line-height: 1.4;
}

.interaction-sidebar-item:hover {
    background: rgba(168, 85, 247, 0.05);
    border-color: var(--accent-purple);
    transform: translateX(-2px);
}

.interaction-sidebar-item.active {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    color: white;
    border-color: #a855f7;
    box-shadow: 0 4px 10px rgba(168, 85, 247, 0.2);
}

.interaction-sidebar-item .type-icon {
    font-size: 14px;
    opacity: 0.8;
}

.interaction-sidebar-item.active .type-icon {
    opacity: 1;
}

/* منطقة التحكم والعرض الرئيسية */
.interaction-main-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.01);
}

.no-interaction-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-grow: 1;
    padding: 40px 20px;
    color: var(--text-muted);
}

/* بطاقة تفاصيل التفاعل الفعّال */
.active-interaction-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.active-interaction-header {
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 12px;
}

.active-interaction-question {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-slate);
    line-height: 1.5;
}

.active-interaction-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 700;
    margin-top: 6px;
}

.active-interaction-badge.poll {
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-purple);
}

.active-interaction-badge.feedback {
    background: rgba(37, 99, 235, 0.1);
    color: var(--accent-blue);
}

/* تخطيط التفاعل النشط: شاشتين منقسمتين */
.active-interaction-content-grid {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 20px;
}

@media (max-width: 900px) {
    .active-interaction-content-grid {
        grid-template-columns: 1fr;
    }
}

/* شاشة الرمز المربع ومشاركة الرابط */
.active-interaction-qr-card {
    border: 1px solid var(--border-light);
    background: #f8fafc;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.active-interaction-qr-box {
    width: 130px;
    height: 130px;
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.active-interaction-qr-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.active-interaction-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    margin-top: 10px;
}

.active-interaction-actions button {
    width: 100%;
    padding: 6px 10px;
    font-size: 11px;
}

/* شاشة عرض النتائج الحية للتصويت */
.live-results-panel {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.poll-option-result-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.poll-option-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
}

.poll-option-title {
    color: var(--primary-slate);
}

.poll-option-percentage {
    color: var(--accent-purple);
    font-family: var(--font-family);
}

.poll-option-progress-bg {
    width: 100%;
    height: 12px;
    background: #e2e8f0;
    border-radius: 50px;
    overflow: hidden;
}

.poll-option-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #a855f7 0%, #8b5cf6 100%);
    border-radius: 50px;
    transition: width 0.5s ease-out;
}

.poll-total-votes-label {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-muted);
    border-top: 1px solid var(--border-light);
    padding-top: 8px;
    margin-top: 5px;
}

/* قائمة المشاركين في التصويت */
.poll-voters-timeline {
    max-height: 150px;
    overflow-y: auto;
    background: rgba(248, 250, 252, 0.5);
    border-radius: 8px;
    border: 1px solid var(--border-light);
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 5px;
}

.poll-voter-chip {
    font-size: 11px;
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px dashed rgba(226, 232, 240, 0.7);
}

.poll-voter-chip:last-child {
    border-bottom: none;
}

.poll-voter-name {
    font-weight: 700;
}

.poll-voter-choice {
    font-weight: 600;
    color: var(--accent-purple);
}

/* شاشة عرض بطاقات جمع الملاحظات الحية */
.live-feedback-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 4px;
}

.feedback-card-item {
    background: #f8fafc;
    border: 1px solid var(--border-light);
    border-right: 4px solid var(--accent-blue);
    border-radius: 6px 10px 10px 6px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: all 0.2s;
}

.feedback-card-item:hover {
    border-color: #cbd5e1;
    border-right-color: var(--accent-blue);
    transform: translateY(-1px);
    background: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.01);
}

.feedback-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.feedback-card-respondent {
    display: flex;
    flex-direction: column;
    text-align: right;
    gap: 2px;
}

.feedback-card-respondent-name {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--accent-blue);
}

.feedback-card-respondent-title {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.feedback-card-time {
    font-size: 10px;
    color: #94a3b8;
    background: #e2e8f0;
    padding: 2px 6px;
    border-radius: 50px;
}

.feedback-card-text {
    font-size: 12px;
    color: var(--text-main);
    line-height: 1.5;
    white-space: pre-line;
    font-weight: 500;
}

/* --------------------------------------------------------------------
   تنسيقات صفحة تفاصيل التوصية المخصصة (Recommendation Details Styles)
   -------------------------------------------------------------------- */
.recommendation-link {
    color: var(--primary-slate);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.recommendation-link:hover {
    color: var(--accent-blue);
    transform: translateX(-4px); /* إزاحة حركية ليسار لتأثير الـ RTL */
}

.recommendation-details-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 992px) {
    .recommendation-details-grid {
        grid-template-columns: 1fr;
    }
}

.recommendation-form-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rec-dep-list, .rec-esc-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rec-dep-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
}

.rec-dep-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.rec-esc-card {
    background: #fff5f5;
    border: 1px solid #fee2e2;
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: var(--transition-smooth);
    border-right: 4px solid var(--gov-red);
}

.rec-esc-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.rec-esc-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11.5px;
    color: var(--text-muted);
}

.rec-esc-action {
    font-size: 12.5px;
    font-weight: 700;
    color: #991b1b;
    line-height: 1.5;
}

/* ==================================================================== */
/* تحسينات الهيكل التنظيمي التفاعلي القابل للطي (Collapsible Tree Explorer) */
/* ==================================================================== */
.org-details {
    transition: all 0.3s ease;
}

.org-details summary {
    list-style: none;
    outline: none;
}

.org-details summary::-webkit-details-marker {
    display: none;
}

.org-details[open] > summary .toggle-icon-wrapper {
    transform: rotate(45deg);
    background: #fee2e2 !important; /* خلفية حمراء ناعمة جداً تليق بالهوية البصرية */
    color: #ef4444 !important; /* لون أحمر زاهي للـ X */
    border-color: rgba(239, 68, 68, 0.2) !important;
}

.org-details-content {
    animation: slideDownOrg 0.25s ease-out;
}

@keyframes slideDownOrg {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* أزرار الإجراءات التفاعلية داخل شجرة الهيكل التنظيمي */
.tree-actions-group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: auto; /* دفع الأزرار إلى اليسار تماماً في نظام الـ RTL */
    padding-left: 10px;
    opacity: 0.3; /* إخفاء ناعم وافتراضي لتلافي التشويش البصري */
    transition: all 0.25s ease;
}

/* الكشف التلقائي عن أزرار التحكم عند مرور الماوس على مستوى الهيكل الإداري */
.dep-flow-node:hover .tree-actions-group {
    opacity: 1;
}

.btn-tree-action {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1px solid var(--border-light);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* تأثير مرور الماوس على زر التعديل (Pen Edit) */
.btn-tree-action.btn-tree-edit {
    color: #4b5563;
}
.btn-tree-action.btn-tree-edit:hover {
    background: #ccfbf1; /* فيروزي ناعم يماثل الهوية */
    color: #0f766e;
    border-color: #99f6e4;
    transform: scale(1.12);
}

/* تأثير مرور الماوس على زر الحذف (Trash Delete) */
.btn-tree-action.btn-tree-delete {
    color: #dc2626;
}
.btn-tree-action.btn-tree-delete:hover {
    background: #fee2e2; /* أحمر ناعم */
    color: #ef4444;
    border-color: #fecaca;
    transform: scale(1.12);
}

/* ==================================================================== */
/* روابط التوصيات التفاعلية (Interactive Outcome/Recommendation Links) */
/* ==================================================================== */
.outcome-link:hover {
    color: #b45309 !important; /* لون ذهبي دافئ فاخر */
}

.outcome-link:hover .outcome-desc-text {
    border-bottom-color: #b45309 !important;
}

.outcome-link:hover i {
    transform: scale(1.15) rotate(2deg);
    color: #b45309 !important;
}

/* ==================================================================== */
/* قسم فرز الاجتماعات المتقدم التنفيذي الفاخر (Meetings Executive Filter) */
/* ==================================================================== */
.meetings-filter-card {
    background: #f8fafc !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03) !important;
    border-radius: 12px !important;
    padding: 20px !important;
    margin-top: 15px !important;
    margin-bottom: 24px !important;
    transition: all 0.3s ease !important;
}

.meetings-filter-card:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,0.05) !important;
    border-color: rgba(203, 213, 225, 0.8) !important;
}

.meetings-filter-card-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--primary-slate);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    padding-bottom: 8px;
}

.meetings-filter-card-title i {
    color: #4b49ac;
}

.meetings-filter-grid-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: end;
}

/* التجاوب للشاشات المتوسطة والكبيرة */
@media (min-width: 576px) {
    .meetings-filter-grid-layout {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .meetings-filter-grid-layout {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

.meetings-filter-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.meetings-filter-input-group label {
    font-size: 12.5px;
    font-weight: 700;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
}

.meetings-filter-input-group:focus-within label {
    color: #4b49ac;
}

.meetings-filter-input-group select {
    padding: 10px 15px;
    font-family: 'Cairo', sans-serif;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(203, 213, 225, 0.8);
    border-radius: 8px;
    background: #ffffff;
    outline: none;
    color: #1e293b;
    box-shadow: 0 1px 2px rgba(0,0,0,0.01) inset;
    transition: all 0.3s ease;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475569'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 12px center;
    background-size: 14px;
    padding-left: 36px;
}

.meetings-filter-input-group select:hover {
    border-color: rgba(164, 180, 203, 0.8);
}

.meetings-filter-input-group select:focus {
    border-color: #4b49ac;
    box-shadow: 0 0 0 3px rgba(75, 73, 172, 0.12);
}

/* حاوية الأزرار الموحدة */
.meetings-filter-action-block {
    display: flex;
    gap: 8px;
    width: 100%;
}

.meetings-filter-action-block button {
    font-family: 'Cairo', sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 40px;
}

/* زر تطبيق الفلتر (كحلي صلب) */
.meetings-filter-btn-apply {
    background: #4b49ac !important;
    border: 1px solid #4b49ac !important;
    color: #ffffff !important;
}

.meetings-filter-btn-apply:hover {
    background: #3f3da0 !important;
    border-color: #3f3da0 !important;
    box-shadow: 0 4px 12px rgba(75, 73, 172, 0.2);
    transform: translateY(-1px);
}

/* زر إعادة التعيين (خطي ناعم) */
.meetings-filter-btn-reset {
    background: transparent !important;
    border: 1px solid rgba(75, 73, 172, 0.3) !important;
    color: #4b49ac !important;
}

.meetings-filter-btn-reset:hover {
    background: rgba(75, 73, 172, 0.05) !important;
    border-color: #4b49ac !important;
    transform: translateY(-1px);
}

.meetings-filter-action-block button:active {
    transform: translateY(0);
}





/* ============================================================= */
/* حقل البحث في رأس بطاقة فرز الاجتماعات (Header Search Field) */
/* ============================================================= */

.meetings-header-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 180px;
    max-width: 400px;
}

.meetings-header-search-icon {
    position: absolute;
    right: 14px;
    color: #a0aec0;
    font-size: 13px;
    pointer-events: none;
    transition: color 0.25s ease;
    z-index: 1;
}

.meetings-header-search-input {
    width: 100%;
    height: 38px;
    padding: 0 38px 0 14px;
    border: 1.5px solid rgba(75, 73, 172, 0.18);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(6px);
    font-family: 'Cairo', 'Tajawal', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #2d3748;
    direction: rtl;
    text-align: right;
    outline: none;
    box-shadow: 0 1px 4px rgba(75, 73, 172, 0.06);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.meetings-header-search-input::placeholder {
    color: #b0bac9;
    font-weight: 400;
    font-size: 12.5px;
}

.meetings-header-search-input:focus {
    border-color: #4b49ac;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(75, 73, 172, 0.12), 0 1px 6px rgba(75, 73, 172, 0.1);
}

.meetings-header-search-wrapper:focus-within .meetings-header-search-icon {
    color: #4b49ac;
}

/* مظهر مميز لمفتاح المساعد الشخصي للإشارة إلى الذكاء والأتمتة */
.nav-item.assistant-btn {
    border: 1.5px dashed rgba(139, 92, 246, 0.45) !important;
    background-color: rgba(139, 92, 246, 0.05) !important;
    color: #8b5cf6 !important; /* Violet */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    margin-bottom: 12px !important;
}

.nav-item.assistant-btn i {
    color: #8b5cf6 !important;
}

.nav-item.assistant-btn:hover {
    background-color: rgba(139, 92, 246, 0.12) !important;
    border-color: rgba(139, 92, 246, 0.9) !important;
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.25) !important;
    color: #7c3aed !important;
}

.nav-item.assistant-btn.active {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.35) !important;
}

.nav-item.assistant-btn.active i {
    color: #ffffff !important;
}
