:root {
    --color-ocean-50: #f0f7f8;
    --color-ocean-100: #d9eef1;
    --color-ocean-200: #b6dee4;
    --color-ocean-300: #84c5d0;
    --color-ocean-400: #4da4b4;
    --color-ocean-500: #338898;
    --color-ocean-600: #2c6f7f;
    --color-ocean-700: #285b68;
    --color-ocean-800: #264c57;
    --color-ocean-900: #23404a;
    --color-ocean-950: #122830;
    --color-surface: #f3f8f9;
    --color-ink: #1a2e35;
}

body {
    font-feature-settings: "ss01" on, "cv11" on;
    letter-spacing: -0.011em;
}

[x-cloak] {
    display: none !important;
}

.font-display {
    letter-spacing: -0.03em;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    background-color: #285b68;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
    transition: background-color 0.15s ease;
}

.btn-primary:hover {
    background-color: #264c57;
}

.btn-primary:focus {
    outline: none;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #338898;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    border: 1px solid #b6dee4;
    background-color: #fff;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #264c57;
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
    transition: background-color 0.15s ease;
}

.btn-secondary:hover {
    background-color: #f0f7f8;
}

.btn-secondary:focus {
    outline: none;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #338898;
}

.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    background-color: #b91c1c;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    transition: background-color 0.15s ease;
}

.btn-danger:hover {
    background-color: #991b1b;
}

.card-panel {
    border-radius: 0.75rem;
    border: 1px solid #d9eef1;
    background-color: #fff;
    padding: 1.25rem;
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
}

.form-input-field {
    margin-top: 0.25rem;
    display: block;
    width: 100%;
    border-radius: 0.375rem;
    border-color: #b6dee4;
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
}

.form-input-field:focus {
    border-color: #338898;
    outline: none;
    box-shadow: 0 0 0 1px #338898;
}

.badge-income {
    display: inline-flex;
    border-radius: 9999px;
    background-color: #ecfdf5;
    padding: 0.125rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #047857;
}

.badge-expense {
    display: inline-flex;
    border-radius: 9999px;
    background-color: #fff1f2;
    padding: 0.125rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #be123c;
}

.data-table {
    width: 100%;
    min-width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.data-table thead {
    background-color: #f0f7f8;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #285b68;
}

.data-table th,
.data-table td {
    padding: 0.75rem 1rem;
}

.data-table tbody tr {
    border-top: 1px solid #f0f7f8;
    background-color: #fff;
}

.dash-reveal {
    animation: dash-rise 0.55s ease both;
}

.dash-reveal-delay-1 { animation-delay: 0.08s; }
.dash-reveal-delay-2 { animation-delay: 0.16s; }
.dash-reveal-delay-3 { animation-delay: 0.24s; }
.dash-reveal-delay-4 { animation-delay: 0.32s; }

.dash-bar {
    height: 100%;
    border-radius: 0.125rem;
    transition: all 0.7s ease-out;
    transform-origin: bottom;
    animation: dash-grow 0.8s ease both;
}

.dash-hbar {
    height: 0.5rem;
    overflow: hidden;
    border-radius: 9999px;
    background-color: #d9eef1;
}

.dash-hbar > span {
    display: block;
    height: 100%;
    border-radius: 9999px;
    background-color: #2c6f7f;
    animation: dash-fill 0.85s ease both;
}

.year-slider {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.year-slider::-webkit-scrollbar {
    display: none;
}

.year-card {
    flex: 0 0 calc((100% - 4 * 0.75rem) / 5);
    min-width: 0;
}

@keyframes dash-rise {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes dash-grow {
    from {
        transform: scaleY(0);
        opacity: 0.4;
    }
    to {
        transform: scaleY(1);
        opacity: 1;
    }
}

@keyframes dash-fill {
    from {
        width: 0 !important;
    }
}
