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

:root {
    --brand-deep: #0f2f43;
    --brand-mid: #1e5f74;
    --brand-accent: #f59e0b;
    --bg-surface: #f4f7fb;
    --card-border: #e4ebf3;
    --text-strong: #0e1b2a;
    --text-soft: #5f6b7a;
}

body {
    font-family: "Manrope", "Segoe UI", sans-serif;
    font-size: 0.94rem;
    color: var(--text-strong);
    background:
        radial-gradient(circle at 0% 0%, rgba(30, 95, 116, 0.13), transparent 40%),
        radial-gradient(circle at 90% 10%, rgba(245, 158, 11, 0.08), transparent 35%),
        var(--bg-surface);
    min-height: 100vh;
}

.app-shell {
    max-width: 1600px;
}

.topbar {
    background: linear-gradient(95deg, var(--brand-deep), #123a53 55%, #1d4d67);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar .navbar-brand {
    letter-spacing: 0.2px;
}

.topbar .brand-logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    padding: 2px;
}

.topbar .brand-name {
    font-size: 1rem;
    white-space: nowrap;
}

.topbar .nav-link {
    border-radius: 10px;
    padding: 0.42rem 0.72rem;
    color: rgba(255, 255, 255, 0.86);
    font-weight: 500;
    transition: all 0.2s ease;
}

.topbar .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.topbar .nav-link.active {
    background: rgba(245, 158, 11, 0.2);
    color: #fff;
}

.topbar .navbar-nav .dropdown-toggle::after {
    margin-left: 0.45rem;
}

.topbar .dropdown-menu {
    border: 0;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(8, 19, 29, 0.25);
    padding: 0.4rem;
    min-width: 220px;
}

.topbar .dropdown-item {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.45rem 0.65rem;
}

.topbar .dropdown-item.active,
.topbar .dropdown-item:active {
    color: #0f2f43;
    background: rgba(30, 95, 116, 0.16);
}

.topbar .user-nav .nav-link {
    background: rgba(255, 255, 255, 0.1);
}

.topbar .user-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.16);
}

.topbar-search {
    min-width: 320px;
}

.topbar-search .form-control {
    min-width: 260px;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.94);
}

.topbar-search .form-control::placeholder {
    color: #5f6b7a;
}

.page-title {
    font-weight: 700;
    color: #11263a;
}

.card {
    margin-bottom: 1rem;
    border-radius: 14px;
    border: 1px solid var(--card-border);
    box-shadow: 0 10px 24px rgba(14, 27, 42, 0.06);
}

.card-header {
    background: #fff;
    border-bottom: 1px solid var(--card-border);
    border-radius: 14px 14px 0 0 !important;
    font-weight: 600;
}

.table {
    --bs-table-bg: transparent;
}

.table td,
.table th {
    vertical-align: middle;
    border-color: #e8eef5;
}

.table thead th {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-soft);
}

.badge {
    font-size: 0.74rem;
    font-weight: 600;
    text-transform: capitalize;
}

.btn {
    border-radius: 10px;
    font-weight: 600;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-mid), #215b9d);
    border-color: transparent;
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, #184b5c, #1d4b82);
}

.form-control,
.form-select {
    border-radius: 10px;
    border-color: #d8e1ec;
}

.form-control:focus,
.form-select:focus {
    border-color: #8fbbd5;
    box-shadow: 0 0 0 0.2rem rgba(30, 95, 116, 0.15);
}

.kpi-card {
    color: #fff;
    border: none;
}

.kpi-card .card-title {
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
}

.kpi-card .display-6 {
    font-size: 2rem;
    font-weight: 700;
}

.kpi-primary {
    background: linear-gradient(140deg, #1e5f74, #2a78a8);
}

.kpi-success {
    background: linear-gradient(140deg, #1f7a6a, #2ea067);
}

.kpi-warning {
    background: linear-gradient(140deg, #ad6b1a, #d5952a);
}

.kpi-danger {
    background: linear-gradient(140deg, #8d2c2c, #c34747);
}

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.login-card {
    width: 100%;
    max-width: 460px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(4px);
}

.login-brand {
    background: linear-gradient(120deg, var(--brand-deep), var(--brand-mid));
    color: #fff;
    border-radius: 14px 14px 0 0;
}

.login-logo {
    width: 84px;
    height: 84px;
    object-fit: contain;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.14);
    padding: 8px;
}

.text-redacted {
    color: #64748b;
    font-style: italic;
}

.calendar-grid-table th,
.calendar-grid-table td {
    white-space: nowrap;
    min-width: 52px;
    font-size: 0.78rem;
}

@media (max-width: 991.98px) {
    .topbar-search {
        width: 100%;
        margin-top: 0.5rem;
    }

    .topbar-search .form-control {
        min-width: 0;
        width: 100%;
    }
}
