:root {
    color-scheme: light;
}

body {
    font-family: "IBM Plex Sans", sans-serif;
}

.nav-link {
    display: block;
    border-radius: 1rem;
    padding: 0.85rem 1rem;
    color: rgba(255, 255, 255, 0.82);
    transition: background-color 160ms ease, transform 160ms ease;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(2px);
}

.metric-card {
    border-radius: 1.75rem;
    background: white;
    padding: 1.5rem;
    box-shadow: 0 18px 50px rgba(23, 48, 31, 0.12);
}

.metric-label {
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #5f6d62;
}

.metric-value {
    margin-top: 0.75rem;
    font-family: "Space Grotesk", sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #17301f;
}

.flash-stack {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 80;
    display: flex;
    max-width: min(26rem, calc(100vw - 2rem));
    flex-direction: column;
    gap: 0.75rem;
}

.flash {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.9rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(23, 48, 31, 0.08);
    background: rgba(255, 255, 255, 0.96);
    padding: 1rem 1rem 1rem 1.1rem;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.16);
    backdrop-filter: blur(14px);
    animation: flash-enter 180ms ease-out;
}

.flash-success {
    border-left: 4px solid #2f6f46;
}

.flash-error {
    border-left: 4px solid #b42318;
}

.flash-body {
    min-width: 0;
}

.flash-title {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #17301f;
}

.flash-message {
    margin: 0.35rem 0 0;
    color: #334155;
}

.flash-close {
    border: 0;
    background: transparent;
    color: #64748b;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

.flash-exit {
    animation: flash-exit 180ms ease-in forwards;
}

@keyframes flash-enter {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }

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

@keyframes flash-exit {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }
}
