/* =============================================
   FLIGHTPATH NOTIFICATIONS - MAIN STYLESHEET
   ============================================= */

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

:root {
    --primary:     #1a1f36;
    --primary-light: #252b4a;
    --accent:      #5e6ad2;
    --accent-hover:#4f5ac0;
    --cyan:        #00b4d8;
    --success:     #0ead69;
    --warning:     #f7b731;
    --danger:      #e74c3c;
    --info:        #3498db;
    --sidebar-w:   260px;
    --bg:          #f0f2f8;
    --card-bg:     #ffffff;
    --text:        #2d3561;
    --text-muted:  #8b93b0;
    --border:      #e8eaf2;
    --shadow:      0 4px 24px rgba(30,40,100,.08);
    --shadow-lg:   0 8px 40px rgba(30,40,100,.15);
    --radius:      12px;
    --radius-sm:   8px;
    --transition:  all .22s cubic-bezier(.4,0,.2,1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    font-size: 14px;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #c5cae9; border-radius: 3px; }

/* =============================================
   LOGIN PAGE
   ============================================= */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    background: linear-gradient(135deg, #1a1f36 0%, #2d3561 50%, #1a1f36 100%);
    position: relative;
    overflow: hidden;
}

.login-wrapper::before {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(94,106,210,.25) 0%, transparent 70%);
    top: -200px; right: -200px;
    border-radius: 50%;
}

.login-wrapper::after {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(0,180,216,.15) 0%, transparent 70%);
    bottom: -100px; left: -100px;
    border-radius: 50%;
}

.login-brand {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
    position: relative; z-index: 1;
}

.login-brand .brand-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 50px;
}

.login-brand .brand-icon {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, var(--accent), var(--cyan));
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: #fff;
    box-shadow: 0 8px 24px rgba(94,106,210,.4);
}

.login-brand h1 {
    font-size: 28px; font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.login-brand h1 span { color: var(--cyan); }

.login-brand .tagline {
    font-size: 16px; color: rgba(255,255,255,.55);
    margin-bottom: 60px;
}

.login-features { list-style: none; }
.login-features li {
    display: flex; align-items: center; gap: 12px;
    color: rgba(255,255,255,.75);
    font-size: 14px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.login-features li:last-child { border-bottom: none; }
.login-features li .feat-icon {
    width: 34px; height: 34px;
    background: rgba(94,106,210,.2);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: var(--cyan); font-size: 14px;
    flex-shrink: 0;
}

.login-form-panel {
    width: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative; z-index: 1;
}

.login-card {
    background: rgba(255,255,255,.07);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 20px;
    padding: 48px 44px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
}

.login-card h2 {
    font-size: 22px; font-weight: 700;
    color: #fff; margin-bottom: 6px;
}
.login-card p { color: rgba(255,255,255,.5); font-size: 13px; margin-bottom: 36px; }

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    font-size: 12px; font-weight: 600;
    color: rgba(255,255,255,.7);
    text-transform: uppercase; letter-spacing: .8px;
    margin-bottom: 8px;
}

.input-wrap { position: relative; }

.input-wrap .input-icon {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: rgba(255,255,255,.35); font-size: 15px;
    pointer-events: none;
}

.input-wrap input {
    width: 100%;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius-sm);
    padding: 13px 14px 13px 42px;
    color: #fff; font-size: 14px; font-family: 'Inter', sans-serif;
    outline: none;
    transition: var(--transition);
}

.input-wrap input::placeholder { color: rgba(255,255,255,.3); }

.input-wrap input:focus {
    border-color: var(--accent);
    background: rgba(94,106,210,.12);
    box-shadow: 0 0 0 3px rgba(94,106,210,.2);
}

.btn-login {
    width: 100%;
    background: linear-gradient(135deg, var(--accent), #7c88e8);
    border: none; border-radius: var(--radius-sm);
    padding: 14px;
    color: #fff; font-size: 15px; font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 6px 20px rgba(94,106,210,.4);
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin-top: 28px;
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(94,106,210,.5);
}

.login-footer {
    margin-top: 28px;
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,.3);
}

.alert-login {
    background: rgba(231,76,60,.15);
    border: 1px solid rgba(231,76,60,.3);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    color: #ff7675;
    font-size: 13px;
    margin-bottom: 20px;
    display: flex; align-items: center; gap: 8px;
}

/* =============================================
   LAYOUT - SIDEBAR + MAIN
   ============================================= */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* ── SIDEBAR ── */
.sidebar {
    width: var(--sidebar-w);
    background: var(--primary);
    position: fixed; top: 0; left: 0;
    height: 100vh;
    display: flex; flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 100;
    transition: var(--transition);
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    display: flex; align-items: center; gap: 12px;
}

.sidebar-logo {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, var(--accent), var(--cyan));
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(94,106,210,.4);
}

.sidebar-brand {
    flex: 1;
    min-width: 0;
}

.sidebar-brand strong {
    display: block;
    font-size: 13px; font-weight: 700;
    color: #fff; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;
}

.sidebar-brand span {
    font-size: 10px; font-weight: 500;
    color: var(--cyan); text-transform: uppercase;
    letter-spacing: 1.2px;
}

/* nav */
.sidebar-nav { flex: 1; padding: 16px 12px; }

.nav-section-label {
    font-size: 10px; font-weight: 700;
    color: rgba(255,255,255,.3);
    text-transform: uppercase; letter-spacing: 1.5px;
    padding: 0 10px;
    margin: 20px 0 6px;
}

.nav-section-label:first-child { margin-top: 4px; }

.nav-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px;
    border-radius: 9px;
    color: rgba(255,255,255,.55);
    text-decoration: none;
    font-size: 13.5px; font-weight: 500;
    transition: var(--transition);
    position: relative;
    margin-bottom: 2px;
}

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

.nav-item.active {
    background: linear-gradient(135deg, rgba(94,106,210,.3), rgba(0,180,216,.1));
    color: #fff;
    border: 1px solid rgba(94,106,210,.25);
}

.nav-item.active::before {
    content: '';
    position: absolute; right: 0; top: 50%; transform: translateY(-50%);
    width: 3px; height: 60%;
    background: linear-gradient(180deg, var(--accent), var(--cyan));
    border-radius: 2px 0 0 2px;
}

.nav-item i { width: 20px; text-align: center; font-size: 14px; flex-shrink: 0; }

.nav-item .nav-badge {
    margin-left: auto;
    background: var(--accent);
    color: #fff;
    font-size: 10px; font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
}

/* sidebar footer */
.sidebar-footer {
    padding: 16px 12px;
    border-top: 1px solid rgba(255,255,255,.07);
}

.user-card {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px;
    border-radius: 9px;
    background: rgba(255,255,255,.05);
}

.user-avatar {
    width: 34px; height: 34px;
    background: linear-gradient(135deg, var(--accent), var(--cyan));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700; color: #fff;
    flex-shrink: 0;
}

.user-info { flex: 1; min-width: 0; }
.user-info strong {
    display: block; font-size: 12px; font-weight: 600; color: #fff;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.user-info span { font-size: 11px; color: rgba(255,255,255,.35); }

.user-card a {
    color: rgba(255,255,255,.35);
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition);
}
.user-card a:hover { color: var(--danger); }

/* ── MAIN CONTENT ── */
.main-content {
    margin-left: var(--sidebar-w);
    flex: 1;
    display: flex; flex-direction: column;
    min-height: 100vh;
}

/* top bar */
.topbar {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    padding: 0 32px;
    height: 64px;
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 50;
    box-shadow: 0 2px 8px rgba(30,40,100,.05);
}

.topbar-left h2 {
    font-size: 18px; font-weight: 700;
    color: var(--text);
}

.topbar-left .breadcrumb {
    font-size: 12px; color: var(--text-muted);
    margin-top: 1px;
    display: flex; align-items: center; gap: 6px;
}

.topbar-left .breadcrumb a { color: var(--accent); text-decoration: none; }
.topbar-left .breadcrumb a:hover { text-decoration: underline; }

.topbar-right { display: flex; align-items: center; gap: 16px; }

.topbar-btn {
    width: 38px; height: 38px;
    border-radius: 9px;
    background: var(--bg);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.topbar-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

.topbar-notif-badge {
    position: absolute; top: -4px; right: -4px;
    width: 16px; height: 16px;
    background: var(--danger);
    border-radius: 50%;
    font-size: 9px; font-weight: 700;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--card-bg);
}

.topbar-date {
    font-size: 12px; color: var(--text-muted);
    padding: 6px 12px;
    background: var(--bg);
    border-radius: 7px;
    border: 1px solid var(--border);
    white-space: nowrap;
}

/* page content */
.page-content {
    padding: 32px;
    flex: 1;
}

/* =============================================
   DASHBOARD STATS CARDS
   ============================================= */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    display: flex; align-items: flex-start;
    gap: 16px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--card-accent-a, var(--accent)), var(--card-accent-b, var(--cyan)));
}

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

.stat-card.card-blue  { --card-accent-a: #5e6ad2; --card-accent-b: #00b4d8; }
.stat-card.card-green { --card-accent-a: #0ead69; --card-accent-b: #00d2ff; }
.stat-card.card-orange{ --card-accent-a: #f7b731; --card-accent-b: #ff6b35; }
.stat-card.card-purple{ --card-accent-a: #9b59b6; --card-accent-b: #5e6ad2; }

.stat-icon {
    width: 52px; height: 52px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: #fff;
    flex-shrink: 0;
}

.stat-card.card-blue   .stat-icon { background: linear-gradient(135deg, #5e6ad2, #00b4d8); }
.stat-card.card-green  .stat-icon { background: linear-gradient(135deg, #0ead69, #00d2ff); }
.stat-card.card-orange .stat-icon { background: linear-gradient(135deg, #f7b731, #ff6b35); }
.stat-card.card-purple .stat-icon { background: linear-gradient(135deg, #9b59b6, #5e6ad2); }

.stat-body { flex: 1; }
.stat-body .stat-value {
    font-size: 32px; font-weight: 700;
    color: var(--text);
    line-height: 1;
    margin-bottom: 4px;
}
.stat-body .stat-label {
    font-size: 12.5px; font-weight: 500;
    color: var(--text-muted);
}
.stat-body .stat-sub {
    font-size: 11px; color: var(--success);
    margin-top: 8px;
    display: flex; align-items: center; gap: 4px;
}
.stat-body .stat-sub.down { color: var(--danger); }

/* =============================================
   CARDS
   ============================================= */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    overflow: hidden;
    margin-bottom: 24px;
}

.card-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 12px;
}

.card-header h3 {
    font-size: 15px; font-weight: 700;
    color: var(--text);
    display: flex; align-items: center; gap: 9px;
}

.card-header h3 i {
    color: var(--accent); font-size: 14px;
}

.card-body { padding: 24px; }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    font-size: 13px; font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer; border: none;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #7c88e8);
    color: #fff;
    box-shadow: 0 4px 14px rgba(94,106,210,.35);
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(94,106,210,.5);
    color: #fff;
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #00d2ff);
    color: #fff;
    box-shadow: 0 4px 14px rgba(14,173,105,.3);
}
.btn-success:hover { transform: translateY(-1px); color: #fff; }

.btn-warning {
    background: linear-gradient(135deg, var(--warning), #ff6b35);
    color: #fff;
    box-shadow: 0 4px 14px rgba(247,183,49,.3);
}
.btn-warning:hover { transform: translateY(-1px); color: #fff; }

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #c0392b);
    color: #fff;
    box-shadow: 0 4px 14px rgba(231,76,60,.3);
}
.btn-danger:hover { transform: translateY(-1px); color: #fff; }

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 1.5px solid var(--accent);
}
.btn-outline:hover { background: var(--accent); color: #fff; }

.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-lg { padding: 13px 28px; font-size: 15px; }

/* =============================================
   TABLE
   ============================================= */
.table-responsive { overflow-x: auto; }

table {
    width: 100%; border-collapse: collapse;
    font-size: 13.5px;
}

thead tr {
    background: #f7f8fc;
}

thead th {
    padding: 13px 16px;
    text-align: left;
    font-size: 11px; font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase; letter-spacing: .8px;
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
}

tbody tr {
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

tbody tr:hover { background: #f9f9fd; }
tbody tr:last-child { border-bottom: none; }

tbody td {
    padding: 14px 16px;
    color: var(--text);
    vertical-align: middle;
}

.table-actions { display: flex; gap: 7px; }

/* =============================================
   BADGES / STATUS
   ============================================= */
.badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px; font-weight: 600;
    text-transform: capitalize;
    white-space: nowrap;
}

.badge-success { background: rgba(14,173,105,.12); color: #0ead69; }
.badge-danger  { background: rgba(231,76,60,.12);  color: #e74c3c; }
.badge-warning { background: rgba(247,183,49,.12); color: #d4a017; }
.badge-info    { background: rgba(52,152,219,.12); color: #3498db; }
.badge-primary { background: rgba(94,106,210,.12); color: #5e6ad2; }

/* =============================================
   FORMS
   ============================================= */
.form-section {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    overflow: hidden;
    margin-bottom: 24px;
}

.form-section-header {
    padding: 18px 28px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f2f8 100%);
    display: flex; align-items: center; gap: 10px;
}

.form-section-header h3 {
    font-size: 15px; font-weight: 700; color: var(--text);
}

.form-section-header i { color: var(--accent); }

.form-section-body { padding: 28px; }

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group { margin-bottom: 0; }

.form-group label {
    display: block;
    font-size: 12px; font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase; letter-spacing: .8px;
    margin-bottom: 8px;
}

.form-group .form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13.5px; font-family: 'Inter', sans-serif;
    color: var(--text);
    background: #fff;
    outline: none;
    transition: var(--transition);
    appearance: none;
}

.form-group .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(94,106,210,.1);
}

.form-group .form-control.is-invalid {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(231,76,60,.1);
}

.invalid-feedback {
    font-size: 11.5px; color: var(--danger);
    margin-top: 5px;
    display: flex; align-items: center; gap: 5px;
}

.input-group {
    display: flex;
}

.input-group-text {
    background: #f7f8fc;
    border: 1.5px solid var(--border);
    border-right: none;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    padding: 11px 14px;
    font-size: 13px; font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}

.input-group .form-control {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    flex: 1;
}

.form-actions {
    display: flex; gap: 12px; align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    margin-top: 8px;
    flex-wrap: wrap;
}

/* =============================================
   ALERTS
   ============================================= */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 13.5px; font-weight: 500;
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 20px;
    border: 1px solid;
}

.alert-success {
    background: rgba(14,173,105,.08);
    border-color: rgba(14,173,105,.25);
    color: #0a8a52;
}
.alert-danger {
    background: rgba(231,76,60,.08);
    border-color: rgba(231,76,60,.25);
    color: #c0392b;
}
.alert-warning {
    background: rgba(247,183,49,.08);
    border-color: rgba(247,183,49,.25);
    color: #b8860b;
}
.alert-info {
    background: rgba(52,152,219,.08);
    border-color: rgba(52,152,219,.25);
    color: #2980b9;
}

/* =============================================
   SEARCH BAR
   ============================================= */
.search-bar {
    position: relative; max-width: 280px;
}

.search-bar input {
    width: 100%;
    padding: 9px 14px 9px 38px;
    border: 1.5px solid var(--border);
    border-radius: 20px;
    font-size: 13px; font-family: 'Inter', sans-serif;
    color: var(--text);
    outline: none;
    transition: var(--transition);
    background: var(--bg);
}

.search-bar input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(94,106,210,.1);
    background: #fff;
}

.search-bar i {
    position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
    color: var(--text-muted); font-size: 13px;
    pointer-events: none;
}

/* =============================================
   EMPTY STATE
   ============================================= */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 52px;
    color: var(--border);
    display: block;
    margin-bottom: 16px;
}

.empty-state h4 { font-size: 16px; color: var(--text-muted); margin-bottom: 8px; }
.empty-state p  { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }

/* =============================================
   PAGINATION
   ============================================= */
.pagination {
    display: flex; align-items: center; gap: 4px;
    justify-content: flex-end;
    padding: 16px 24px;
    border-top: 1px solid var(--border);
}

.page-link {
    width: 34px; height: 34px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    border: 1px solid var(--border);
    background: #fff;
    transition: var(--transition);
}

.page-link:hover { border-color: var(--accent); color: var(--accent); }
.page-link.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* =============================================
   MODAL
   ============================================= */
.modal-backdrop {
    position: fixed; inset: 0;
    background: rgba(15,20,50,.6);
    backdrop-filter: blur(4px);
    z-index: 200;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    opacity: 0; visibility: hidden;
    transition: var(--transition);
}

.modal-backdrop.show { opacity: 1; visibility: visible; }

.modal-box {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    max-width: 480px; width: 100%;
    transform: scale(.95) translateY(10px);
    transition: var(--transition);
}

.modal-backdrop.show .modal-box { transform: scale(1) translateY(0); }

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

.modal-header h4 { font-size: 16px; font-weight: 700; color: var(--text); }

.modal-close {
    width: 32px; height: 32px;
    border: none; background: var(--bg);
    border-radius: 8px; cursor: pointer;
    color: var(--text-muted); font-size: 16px;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.modal-close:hover { background: var(--danger); color: #fff; }

.modal-body { padding: 24px; }
.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    display: flex; gap: 10px; justify-content: flex-end;
}

/* =============================================
   SEND NOTIFICATION PANEL
   ============================================= */
.send-panel {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.send-panel::before {
    content: '';
    position: absolute;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(94,106,210,.3) 0%, transparent 70%);
    top: -60px; right: -60px;
    border-radius: 50%;
    pointer-events: none;
}

.send-panel h3 {
    color: #fff; font-size: 16px; font-weight: 700;
    margin-bottom: 6px;
}
.send-panel p { color: rgba(255,255,255,.5); font-size: 13px; margin-bottom: 20px; }

.send-panel .form-control {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.12);
    color: #fff;
}
.send-panel .form-control:focus {
    background: rgba(255,255,255,.12);
    border-color: var(--accent);
}
.send-panel .form-control::placeholder { color: rgba(255,255,255,.3); }

.send-panel label { color: rgba(255,255,255,.7); }

/* =============================================
   FOOTER
   ============================================= */
.app-footer {
    padding: 16px 32px;
    border-top: 1px solid var(--border);
    background: var(--card-bg);
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 8px;
    font-size: 12px; color: var(--text-muted);
}

.app-footer strong { color: var(--accent); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
    :root { --sidebar-w: 0px; }
    .sidebar { transform: translateX(-260px); }
    .sidebar.open { transform: translateX(0); width: 260px; }
    .main-content { margin-left: 0; }
    .login-wrapper { flex-direction: column; }
    .login-brand { display: none; }
    .login-form-panel { width: 100%; }
    .page-content { padding: 16px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .topbar { padding: 0 16px; }
    .topbar-date { display: none; }
}
