/* ═══════════════════════════════════════════════════════════════ */
/*  NAJAHI DASHBOARD — Light Purple Theme (Laravel-Style)         */
/*  Inspired by the original Laravel dashboard design             */
/* ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&display=swap');

:root {
    /* Primary */
    --primary: #6c5ce7;
    --primary-dark: #5a4bd1;
    --primary-light: #a29bfe;
    --primary-bg: rgba(108, 92, 231, 0.08);
    --primary-gradient: linear-gradient(180deg, #6c5ce7 0%, #4a3ab5 100%);

    /* Backgrounds */
    --bg-page: #f0f2f5;
    --bg-white: #ffffff;
    --bg-card: #ffffff;
    --bg-sidebar: linear-gradient(180deg, #6c5ce7 0%, #4834d4 50%, #3c2a9e 100%);
    --bg-input: #f8f9fa;
    --bg-hover: #f5f3ff;

    /* Borders */
    --border: #e8e8e8;
    --border-light: #f0f0f0;

    /* Text */
    --text-primary: #2d3436;
    --text-secondary: #636e72;
    --text-muted: #b2bec3;
    --text-white: #ffffff;

    /* Status */
    --success: #00b894;
    --success-bg: #e8f8f5;
    --warning: #fdcb6e;
    --warning-bg: #fef9e7;
    --danger: #e74c3c;
    --danger-bg: #fdedec;
    --info: #0984e3;
    --info-bg: #ebf5fb;

    /* Sizing */
    --sidebar-width: 220px;
    --sidebar-collapsed: 64px;
    --header-height: 60px;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-xs: 6px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 14px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    background: var(--bg-page);
    color: var(--text-primary);
    direction: rtl;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ═══ SCROLLBAR ═══ */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #d5d5d5;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}

/* ═══════════════════════════════════ */
/*  LOGIN SCREEN                      */
/* ═══════════════════════════════════ */
.login-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--bg-page);
    position: relative;
}

.login-screen::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 0 0 0 80px;
    z-index: 0;
}

.login-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 2.5rem 2.25rem;
    width: 400px;
    max-width: 92vw;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo .logo-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.5rem;
}

.login-logo h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
}

.login-logo p {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 0.15rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 0.7rem 0.9rem;
    background: var(--bg-input);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: 'Cairo', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.25s ease;
}

.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-bg);
    background: var(--bg-white);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.btn-primary {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-family: 'Cairo', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-primary:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.35);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-loading {
    display: none;
}

.error-msg {
    color: var(--danger);
    font-size: 0.82rem;
    text-align: center;
    margin-top: 0.75rem;
    padding: 0.5rem;
    background: var(--danger-bg);
    border-radius: var(--radius-xs);
    display: none;
    font-weight: 600;
}

/* ═══════════════════════════════════ */
/*  DASHBOARD LAYOUT                  */
/* ═══════════════════════════════════ */
#dashboard {
    display: none;
    min-height: 100vh;
}

/* ═══ SIDEBAR ═══ */
.sidebar {
    position: fixed;
    right: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-sidebar);
    display: flex;
    flex-direction: column;
    z-index: 100;
    overflow: hidden;
    transition: width 0.3s ease;
}

.sidebar-brand {
    padding: 1.25rem 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-brand .brand-icon {
    font-size: 1.75rem;
    display: block;
    margin-bottom: 0.2rem;
}

.sidebar-brand h2 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-white);
}

.sidebar-brand p {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 500;
}

.sidebar-nav {
    flex: 1;
    padding: 0.75rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 0.85rem;
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.95);
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.18);
    color: var(--text-white);
    font-weight: 700;
}

.nav-item .nav-icon {
    font-size: 1.1rem;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-footer {
    padding: 0.75rem 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.6rem;
    margin-bottom: 0.5rem;
}

.admin-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.admin-info .admin-label {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    display: block;
    font-weight: 500;
}

.admin-info .admin-email {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.85);
    display: block;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
}

#logout-btn {
    width: 100%;
    padding: 0.55rem;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    font-family: 'Cairo', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

#logout-btn:hover {
    background: rgba(231, 76, 60, 0.25);
    border-color: rgba(231, 76, 60, 0.35);
    color: #ffeaea;
}

/* ═══ MAIN CONTENT ═══ */
.main-content {
    margin-right: var(--sidebar-width);
    min-height: 100vh;
    background: var(--bg-page);
}

.top-bar {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--header-height);
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    box-shadow: var(--shadow-sm);
}

.top-bar h1 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.top-bar .online-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--success);
    background: var(--success-bg);
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
}

.online-dot {
    width: 7px;
    height: 7px;
    background: var(--success);
    border-radius: 50%;
    animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes dot-pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(0, 184, 148, 0.4);
    }

    50% {
        box-shadow: 0 0 0 5px rgba(0, 184, 148, 0);
    }
}

#sidebar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0.3rem;
}

.page-content {
    padding: 1.5rem;
}

/* ═══ PAGES ═══ */
.page {
    display: none;
}

.page.active {
    display: block;
    animation: fadeUp 0.3s ease;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ═══════════════════════════════════ */
/*  STAT CARDS                        */
/* ═══════════════════════════════════ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    text-align: center;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-sm);
}

.stat-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.stat-card .stat-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 0.25rem;
}

.stat-card:nth-child(1) .stat-icon {
    background: #e8daff;
}

.stat-card:nth-child(2) .stat-icon {
    background: #d4efdf;
}

.stat-card:nth-child(3) .stat-icon {
    background: #d6eaf8;
}

.stat-card:nth-child(4) .stat-icon {
    background: #fdebd0;
}

.stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
}

.stat-card .stat-label {
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-top: 0.15rem;
}

.stat-card .stat-desc {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

/* ═══════════════════════════════════ */
/*  CHARTS                            */
/* ═══════════════════════════════════ */
.charts-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.chart-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.chart-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.chart-card h3 .chart-icon {
    font-size: 1rem;
}

/* ═══ GOV BARS ═══ */
.gov-bar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}

.gov-bar-name {
    font-size: 0.78rem;
    color: var(--text-secondary);
    min-width: 70px;
    text-align: left;
    font-weight: 600;
}

.gov-bar-fill {
    flex: 1;
    height: 24px;
    background: var(--bg-input);
    border-radius: 6px;
    overflow: hidden;
}

.gov-bar-value {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 8px;
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
    min-width: 28px;
    transition: width 0.8s ease;
}

/* ═══════════════════════════════════ */
/*  SECTION HEADER                    */
/* ═══════════════════════════════════ */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.section-header h3 {
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* ═══════════════════════════════════ */
/*  TABLE                             */
/* ═══════════════════════════════════ */
.table-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead th {
    padding: 0.85rem 1rem;
    text-align: right;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.2px;
    background: var(--bg-input);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

tbody td {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-light);
    font-weight: 500;
}

tbody tr:hover td {
    background: var(--bg-hover);
}

tbody tr:last-child td {
    border-bottom: none;
}

.loading-cell {
    text-align: center;
    padding: 2rem !important;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 600;
}

/* ═══════════════════════════════════ */
/*  BADGES                            */
/* ═══════════════════════════════════ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
}

.badge-blue {
    background: var(--info-bg);
    color: var(--info);
}

.badge-green {
    background: var(--success-bg);
    color: var(--success);
}

.badge-purple {
    background: var(--primary-bg);
    color: var(--primary);
}

.badge-warning {
    background: var(--warning-bg);
    color: #e67e22;
}

/* ═══════════════════════════════════ */
/*  BUTTONS                           */
/* ═══════════════════════════════════ */
.btn-sm {
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-xs);
    font-family: 'Cairo', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.btn-view {
    background: var(--primary-bg);
    color: var(--primary);
}

.btn-view:hover {
    background: var(--primary);
    color: white;
}

/* ═══════════════════════════════════ */
/*  SEARCH & FILTER (Users Page)      */
/* ═══════════════════════════════════ */
.search-filter-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}

.search-filter-card h4 {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.85rem;
}

.users-toolbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 0.6rem 0.85rem 0.6rem 2.2rem;
    background: var(--bg-input);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: 'Cairo', sans-serif;
    font-size: 0.85rem;
    outline: none;
    transition: all 0.25s ease;
    font-weight: 500;
}

.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-bg);
    background: var(--bg-white);
}

.search-box::before {
    content: '🔍';
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
}

.filter-group {
    display: flex;
    gap: 0.4rem;
}

.filter-btn {
    padding: 0.5rem 0.85rem;
    background: var(--bg-white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-xs);
    color: var(--text-secondary);
    font-family: 'Cairo', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    border-color: var(--primary-light);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.btn-search {
    padding: 0.55rem 1.25rem;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-family: 'Cairo', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.2s ease;
}

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

.btn-export {
    padding: 0.55rem 1rem;
    background: var(--bg-white);
    color: var(--text-secondary);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: 'Cairo', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.2s ease;
}

.btn-export:hover {
    border-color: var(--primary-light);
    color: var(--primary);
}

.table-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.table-info .count-badge {
    background: var(--primary-bg);
    color: var(--primary);
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 1rem;
    border-top: 1px solid var(--border-light);
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

.page-numbers {
    display: flex;
    gap: 0.25rem;
}

.page-num {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--bg-white);
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.page-num.active,
.page-num:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ═══════════════════════════════════ */
/*  MODAL                             */
/* ═══════════════════════════════════ */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: 560px;
    max-width: 95vw;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: modalSlide 0.25s ease;
}

@keyframes modalSlide {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    font-size: 1rem;
    font-weight: 700;
}

.modal-close {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: var(--danger-bg);
    border: none;
    color: var(--danger);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--danger);
    color: white;
}

.modal-body {
    padding: 1.25rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.detail-item {
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    padding: 0.85rem;
    border: 1px solid var(--border-light);
}

.detail-item .label {
    font-size: 0.68rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 700;
}

.detail-item .value {
    font-size: 0.88rem;
    color: var(--text-primary);
    font-weight: 700;
}

/* ═══════════════════════════════════ */
/*  ANALYTICS PAGE                    */
/* ═══════════════════════════════════ */
.analytics-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.analytics-charts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.pie-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-light);
}

.pie-item:last-child {
    border-bottom: none;
}

.pie-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    flex-shrink: 0;
}

.pie-label {
    flex: 1;
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.pie-value {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-primary);
}

/* ═══════════════════════════════════ */
/*  NOTIFICATIONS PAGE                */
/* ═══════════════════════════════════ */
.notif-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 1rem;
}

.notif-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.notif-form-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.notif-form-card .form-group select,
.notif-form-card .form-group input,
.notif-form-card .form-group textarea {
    width: 100%;
    padding: 0.6rem 0.85rem;
    background: var(--bg-input);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-xs);
    color: var(--text-primary);
    font-family: 'Cairo', sans-serif;
    font-size: 0.85rem;
    outline: none;
    transition: all 0.25s;
    font-weight: 500;
}

.notif-form-card .form-group select:focus,
.notif-form-card .form-group input:focus,
.notif-form-card .form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-bg);
}

.notif-form-card textarea {
    min-height: 90px;
    resize: vertical;
}

.btn-send {
    width: 100%;
    padding: 0.7rem;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-family: 'Cairo', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.btn-send:hover {
    opacity: 0.92;
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
}

.notif-result {
    display: none;
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-xs);
    margin-top: 0.75rem;
    font-size: 0.82rem;
    font-weight: 600;
}

.notif-result.success {
    background: var(--success-bg);
    color: var(--success);
}

.notif-result.error {
    background: var(--danger-bg);
    color: var(--danger);
}

/* ═══════════════════════════════════ */
/*  RESPONSIVE                        */
/* ═══════════════════════════════════ */
@media (max-width: 1024px) {

    .stats-grid,
    .analytics-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .charts-grid {
        grid-template-columns: 1fr;
    }

    .notif-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(100%);
    }

    .sidebar.open {
        transform: translateX(0);
        box-shadow: -8px 0 20px rgba(0, 0, 0, 0.15);
    }

    .main-content {
        margin-right: 0;
    }

    #sidebar-toggle {
        display: block;
    }

    .page-content {
        padding: 1rem 0.75rem;
    }

    .stats-grid,
    .analytics-stats {
        grid-template-columns: 1fr;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .users-toolbar {
        flex-direction: column;
    }

    .search-box {
        width: 100%;
    }

    .analytics-charts {
        grid-template-columns: 1fr;
    }

    .login-screen::before {
        display: none;
    }

    .login-card {
        padding: 2rem 1.5rem;
    }
}