html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    min-height: 100vh;
    background: #f5f7fb;
    color: #172033;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* =========================
   Navbar
========================= */

.app-navbar {
    min-height: 68px;
    background: #ffffff;
    box-shadow: 0 1px 8px rgba(15, 23, 42, 0.06);
}

.navbar-brand {
    color: #0f172a !important;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.nav-link {
    color: #475569 !important;
    font-weight: 500;
}

    .nav-link:hover {
        color: #0d6efd !important;
    }

/* =========================
   Main Layout
========================= */

.app-main {
    padding-top: 36px;
    padding-bottom: 64px;
    min-height: calc(100vh - 128px);
}

.app-footer {
    border-top: 1px solid #e5e7eb;
    background: #ffffff;
    color: #64748b;
    font-size: 14px;
    padding: 18px 0;
}

/* =========================
   Page Headers
========================= */

.page-header {
    margin-bottom: 24px;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 6px;
}

.page-subtitle {
    color: #64748b;
    margin-bottom: 0;
}

/* =========================
   Common UI
========================= */

.card {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
}

.shadow-sm {
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06) !important;
}

.btn {
    border-radius: 10px;
    font-weight: 500;
}

.form-control,
.form-select {
    border-radius: 10px;
    min-height: 42px;
}

.badge {
    border-radius: 999px;
    padding: 6px 10px;
    font-weight: 600;
}

/* =========================
   Tables
========================= */

.table {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
}

    .table thead th {
        background: #f8fafc;
        color: #334155;
        font-weight: 700;
        border-bottom: 1px solid #e5e7eb;
    }

    .table td,
    .table th {
        vertical-align: middle;
    }

/* =========================
   Landing Page
========================= */

.landing-hero {
    min-height: 72vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.landing-card {
    width: 100%;
    max-width: 780px;
    padding: 48px;
    background: #ffffff;
    border-radius: 28px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

.landing-title {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 20px;
}

.landing-subtitle {
    color: #64748b;
    font-size: 18px;
    line-height: 1.6;
    max-width: 760px;
    margin: 0 auto 24px auto;
    text-align: center;
}

.landing-btn {
    width: 280px;
}

/* =========================
   Login Pages
========================= */

.login-wrapper {
    min-height: 75vh;
}

.login-card {
    width: 100%;
    max-width: 620px;
    border: none;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.login-subtitle {
    white-space: nowrap;
    font-size: 16px;
    color: #64748b;
}

@media (max-width: 768px) {
    .login-subtitle {
        white-space: normal;
    }

    .login-card {
        max-width: 100%;
    }
}

/* =========================
   Dashboard
========================= */

.dashboard-card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

    .dashboard-card h5 {
        color: #64748b;
        font-size: 15px;
        font-weight: 700;
    }

    .dashboard-card .metric {
        font-size: 36px;
        font-weight: 800;
        letter-spacing: -0.04em;
    }

/* =========================
   Filters
========================= */

.filter-bar {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 18px;
}


.logout-link {
    color: #475569 !important;
    font-weight: 500;
    text-decoration: none;
    padding: 0.5rem 1rem;
}

    .logout-link:hover {
        color: #0d6efd !important;
    }