:root {
    --surface: rgba(255, 255, 255, 0.88);
    --surface-border: rgba(148, 163, 184, 0.22);
    --hero-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(214, 248, 239, 0.92));
    --hero-shadow: 0 30px 80px -34px rgba(20, 71, 61, 0.24);
}

body.app-shell {
    background:
        radial-gradient(circle at top left, rgba(16, 185, 129, 0.16), transparent 24%),
        radial-gradient(circle at 95% 20%, rgba(59, 130, 246, 0.10), transparent 18%),
        linear-gradient(180deg, #f7fafc 0%, #eef7f4 100%);
}

.page-enter {
    animation: page-rise 0.65s ease both;
}

.hero-panel {
    background: var(--hero-bg);
    border: 1px solid rgba(255, 255, 255, 0.82);
    box-shadow: var(--hero-shadow);
}

.hero-panel::after {
    content: "";
    position: absolute;
    right: -80px;
    top: -80px;
    width: 240px;
    height: 240px;
    border-radius: 9999px;
    background: radial-gradient(circle, rgba(30, 166, 127, 0.18), transparent 68%);
    pointer-events: none;
}

.surface-card {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    box-shadow: 0 24px 60px -34px rgba(15, 23, 42, 0.2);
    backdrop-filter: blur(18px);
}

.metric-card {
    border-radius: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.85);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(244, 250, 248, 0.92));
    box-shadow: 0 22px 55px -36px rgba(15, 23, 42, 0.28);
    padding: 1.5rem;
}

.metric-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgb(100 116 139);
}

.metric-value {
    margin-top: 0.9rem;
    font-size: 2.2rem;
    line-height: 1;
    font-weight: 800;
    color: rgb(15 23 42);
}

.metric-meta {
    margin-top: 0.9rem;
    font-size: 0.92rem;
    line-height: 1.65;
    color: rgb(100 116 139);
}

.nav-link {
    display: block;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    padding: 0.95rem 1rem;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.nav-link:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
}

.nav-link-active {
    border-color: rgba(30, 166, 127, 0.35);
    background: linear-gradient(135deg, rgba(30, 166, 127, 0.18), rgba(255, 255, 255, 0.06));
    box-shadow: inset 0 0 0 1px rgba(30, 166, 127, 0.12);
}

.field-wrap {
    display: grid;
    gap: 0.65rem;
}

.field-label {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgb(100 116 139);
}

.field-input {
    width: 100%;
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(255, 255, 255, 0.88);
    padding: 0.9rem 1rem;
    font-size: 0.95rem;
    color: rgb(15 23 42);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.field-input:focus {
    border-color: rgba(30, 166, 127, 0.7);
    box-shadow: 0 0 0 4px rgba(30, 166, 127, 0.15);
    outline: none;
}

.data-table thead th {
    background: rgb(248 250 252);
    padding: 1rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgb(100 116 139);
}

.data-table tbody td {
    border-top: 1px solid rgb(226 232 240);
    padding: 1rem;
    vertical-align: top;
    font-size: 0.95rem;
    color: rgb(51 65 85);
}

.data-table tbody tr {
    transition: background-color 0.2s ease;
}

.data-table tbody tr:hover {
    background: rgba(248, 250, 252, 0.95);
}

.empty-cell {
    padding: 2.4rem 1rem !important;
    text-align: center;
    font-size: 0.95rem;
    color: rgb(100 116 139);
}

@keyframes page-rise {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1023px) {
    .metric-value {
        font-size: 1.9rem;
    }
}
