:root {
    --blue-900: #0a2a66;
    --blue-700: #2457d6;
    --blue-500: #3c74ff;
    --gray-50: #f6f8fc;
    --gray-200: #e3e8f1;
    --gray-600: #667085;
    --shadow-soft: 0 18px 45px rgba(15, 32, 90, 0.12);
}

body {
    font-family: "Helvetica Neue", Arial, sans-serif;
    background: var(--gray-50);
}

.app-shell {
    background: var(--gray-50);
}

.app-layout {
    min-height: 100vh;
}

.app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    overflow-y: auto;
    z-index: 1100;
}

.app-content {
    margin-left: 260px;
    width: calc(100% - 260px);
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: linear-gradient(180deg, var(--blue-700), var(--blue-900));
    color: #fff;
    padding: 24px 0;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.78);
    border-radius: 8px;
    padding: 10px 14px;
}

.sidebar .nav-link.active,
.sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.sidebar-brand {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 0 24px 24px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 20px;
}

.brand-title {
    font-weight: 700;
}

.brand-subtitle {
    font-size: 12px;
    opacity: 0.7;
}

.topbar {
    height: 84px;
    background: #fff;
    border-bottom: 1px solid var(--gray-200);
}

.page-title {
    font-weight: 700;
    font-size: 20px;
}

.page-subtitle {
    color: var(--gray-600);
    font-size: 13px;
}

.stat-card {
    border: 1px solid var(--gray-200);
    border-radius: 16px;
}

.stat-label {
    color: var(--gray-600);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
}

.profile-chip {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gray-200);
    display: grid;
    place-items: center;
    font-weight: 600;
    color: var(--blue-900);
}

.login-page {
    background: #fff;
}

.login-hero {
    background: linear-gradient(160deg, var(--blue-700), var(--blue-900));
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
}

.table thead th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-600);
}

.notification-bell-root {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 1200;
}

.notification-bell-toggle {
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    background: #fff;
    color: var(--blue-900);
    padding: 8px 12px;
    font-size: 13px;
}

.notification-bell-badge {
    margin-left: 8px;
    background: #ef4444;
    color: #fff;
    border-radius: 999px;
    min-width: 18px;
    display: inline-block;
    text-align: center;
    font-size: 11px;
    padding: 1px 6px;
}

.notification-bell-panel {
    margin-top: 8px;
    width: min(420px, 90vw);
    max-height: 380px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
}

.notification-bell-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    border-bottom: 1px solid var(--gray-200);
}

.notification-bell-list {
    padding: 8px 0;
}

.notification-item {
    padding: 8px 10px;
}

.notification-item.unread {
    background: #eef4ff;
}

.notification-link {
    color: #111827;
    text-decoration: none;
    font-size: 13px;
}

.notification-empty {
    padding: 8px 10px;
    color: var(--gray-600);
    font-size: 13px;
}

@media (max-width: 992px) {
    .app-sidebar {
        position: static;
        width: 100%;
    }

    .app-content {
        margin-left: 0;
        width: 100%;
    }
}

.toast-container {
    position: fixed;
    right: 24px;
    bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 2000;
}

.toast-item {
    background: #111827;
    color: #fff;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    box-shadow: var(--shadow-soft);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast-success {
    background: #16a34a;
}

.toast-error {
    background: #ef4444;
}

.toast-hide {
    opacity: 0;
    transform: translateY(6px);
}
