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

html, body {
    min-height: 100%;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    background:
        radial-gradient(circle at 12% -10%, rgba(23, 107, 91, .22), transparent 32rem),
        linear-gradient(180deg, #f7faf9 0%, #eef3f2 100%);
}

.appbar {
    border-bottom: 1px solid rgba(255,255,255,.10);
    backdrop-filter: blur(14px);
}

.brand-mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    margin-left: 8px;
    border-radius: 10px;
    background: linear-gradient(135deg, #2DBB9D, #C79A35);
    color: white;
    font-weight: 800;
    letter-spacing: 0;
    box-shadow: 0 10px 28px rgba(23, 107, 91, .34);
}

.brand-text { margin-left: 10px; font-weight: 800; letter-spacing: 0; }
.main-shell { padding-top: 72px; }
.content-shell { padding: 24px; }
.nav-drawer { border-right: 1px solid rgba(23, 42, 42, .08); }
.mt-nav { padding: 18px 12px; }
.nav-section { padding: 0 14px; color: #7a8a8d; font-weight: 700; text-transform: uppercase; }
.pwa-install-btn {
    margin-right: 10px;
    border-color: rgba(45, 187, 157, .52);
    background: linear-gradient(135deg, rgba(45, 187, 157, .22), rgba(23, 107, 91, .12));
    color: #0e5d50;
    font-weight: 700;
    letter-spacing: .01em;
}

.pwa-install-btn:hover {
    border-color: rgba(16, 118, 110, .72);
    background: linear-gradient(135deg, rgba(45, 187, 157, .30), rgba(16, 118, 110, .18));
}

.pwa-install-btn:focus-visible {
    outline: 2px solid rgba(199, 154, 53, .75);
    outline-offset: 2px;
}

.page-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.premium-card {
    border: 1px solid rgba(23, 42, 42, .08);
    border-radius: 14px;
    box-shadow: 0 16px 42px rgba(16, 42, 42, .08);
}

.hero-login {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        linear-gradient(135deg, rgba(16,42,42,.92), rgba(23,107,91,.82)),
        url('https://images.unsplash.com/photo-1542816417-0983c9c9ad53?auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
}

.login-panel {
    width: min(460px, 100%);
    border-radius: 18px;
    padding: 34px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 28px 90px rgba(0,0,0,.28);
}

.login-label {
    display: block;
    margin: 12px 0 6px;
    color: #405154;
    font-size: .88rem;
    font-weight: 700;
}

.login-input {
    width: 100%;
    height: 54px;
    border: 1px solid rgba(16,42,42,.22);
    border-radius: 12px;
    padding: 0 14px;
    outline: none;
    background: #fff;
    color: #172326;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.login-input:focus {
    border-color: #176B5B;
    box-shadow: 0 0 0 4px rgba(23,107,91,.12);
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.filter-panel {
    padding: 18px;
    border-radius: 14px;
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(23,42,42,.08);
}

.empty-state {
    text-align: center;
    padding: 44px;
    color: #657477;
}

@media (max-width: 960px) {
    .content-shell { padding: 16px; }
    .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pwa-install-btn {
        margin-right: 6px;
        min-width: 44px;
    }
}

@media (max-width: 600px) {
    .page-title { align-items: flex-start; flex-direction: column; }
    .kpi-grid { grid-template-columns: 1fr; }
    .login-panel { padding: 24px; }
    .pwa-install-btn {
        padding-inline: 10px;
        font-size: .75rem;
    }
}

@media (display-mode: standalone) {
    .appbar {
        padding-top: env(safe-area-inset-top);
    }

    .main-shell {
        padding-top: calc(72px + env(safe-area-inset-top));
    }
}

#blazor-error-ui {
    background: #fff4d6;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, .2);
    display: none;
    left: 0;
    padding: .6rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}
