/* assets/css/app.css */

:root {
    --brand-color: #185FA5;
    --sidebar-bg: #1a2332;
    --sidebar-text: #B0BDCE;
    --sidebar-active-bg: rgba(255,255,255,0.08);
}

body {
    background: #f4f6f9;
}

/* ── App shell ─────────────────────────────────────────────── */

.app-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 220px;
    flex-shrink: 0;
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    padding: 16px 0;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px 20px;
    font-weight: 700;
    font-size: 1.05rem;
    color: #fff;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
}

.sidebar-section-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #5C6B84;
    padding: 14px 20px 6px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 20px;
    color: var(--sidebar-text);
    text-decoration: none;
    font-size: 0.88rem;
}

.sidebar-link:hover {
    background: var(--sidebar-active-bg);
    color: #fff;
}

.sidebar-link.active {
    background: var(--sidebar-active-bg);
    color: #fff;
    border-left: 3px solid var(--brand-color);
    padding-left: 17px;
}

.sidebar-bottom {
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 8px;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.topnav {
    height: 56px;
    flex-shrink: 0;
    background: #fff;
    border-bottom: 1px solid #e5e9f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.topnav-page-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.topnav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topnav-user {
    background: transparent;
    border: none;
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--brand-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
}

.page-body {
    padding: 24px;
    flex: 1;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.page-title {
    font-weight: 700;
    margin: 0;
}

.page-sub {
    color: #798294;
    font-size: 0.82rem;
}

/* ── Cards / tables ────────────────────────────────────────── */

.card {
    border: 1px solid #e5e9f0;
    border-radius: 10px;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    background: #fff;
    border-bottom: 1px solid #e5e9f0;
}

.card-title {
    font-weight: 600;
    font-size: 0.9rem;
}

.tbl-wrap {
    overflow-x: auto;
}

.data-table th {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #798294;
    border-top: none;
}

.data-table td {
    vertical-align: middle;
    font-size: 0.85rem;
}

/* ── Auth pages (login / setup / change password) ────────────── */

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sidebar-bg);
    padding: 20px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    border: none;
    border-radius: 14px;
}

.auth-logo {
    font-weight: 700;
    font-size: 1.3rem;
    text-align: center;
}

.auth-sub {
    text-align: center;
    color: #798294;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.toast-container {
    position: fixed;
    bottom: 16px;
    right: 16px;
    z-index: 1090;
}
