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

body {
    font-family: 'Inter', sans-serif;
    background-color: #000;
    color: #d4d4d8;
    overflow-x: hidden;
}

.glass {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(30px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: #27272a;
    border-radius: 10px;
}

.animate-fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loader {
    border-top-color: #fff;
    animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.month-pill.active {
    background: white !important;
    color: black !important;
    font-weight: 800;
    transform: scale(1.05);
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.card-glow-emerald {
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.1);
}

.card-glow-blue {
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.1);
}

.card-glow-amber {
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.1);
}

.card-glow-rose {
    box-shadow: 0 0 30px rgba(244, 63, 94, 0.1);
}

.card-glow-zinc {
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.05);
}

.account-tag {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    text-transform: uppercase;
    font-weight: 700;
    white-space: nowrap;
}

.status-select {
    appearance: none;
    background: transparent;
    cursor: pointer;
    outline: none;
    transition: all 0.2s;
    text-align: center;
}

.btn-primary {
    background-color: white;
    color: black;
}

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

select option {
    background: #000;
    color: #fff;
}

/* YEARLY CHART STYLES */
.chart-bar-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    width: 100%;
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.chart-bar-income {
    width: 100%;
    background: linear-gradient(to top, rgba(16, 185, 129, 0.5), rgba(16, 185, 129, 1));
    transition: height 1s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    bottom: 0;
    z-index: 10;
}

.chart-bar-expense {
    width: 100%;
    background: linear-gradient(to top, rgba(244, 63, 94, 0.5), rgba(244, 63, 94, 1));
    transition: height 1s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    bottom: 0;
    z-index: 5;
}

.chart-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    z-index: 20;
    min-width: max-content;
}

.chart-col:hover .chart-tooltip {
    opacity: 1;
}

/* Custom Checkboxes */
input[type="checkbox"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 14px !important;
    height: 14px !important;
    border: 1.5px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 4px !important;
    background-color: rgba(255, 255, 255, 0.02) !important;
    cursor: pointer !important;
    display: inline-grid !important;
    place-content: center !important;
    transition: all 0.2s ease !important;
    vertical-align: middle !important;
    position: relative !important;
    outline: none !important;
}

input[type="checkbox"]:hover {
    border-color: rgba(255, 255, 255, 0.4) !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
}

input[type="checkbox"]:checked {
    background-color: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(255, 255, 255, 0.9) !important;
}

input[type="checkbox"]:checked::before {
    content: "" !important;
    width: 4px !important;
    height: 7px !important;
    border: solid #000 !important;
    border-width: 0 1.5px 1.5px 0 !important;
    transform: rotate(45deg) !important;
    display: block !important;
    margin-top: -1.5px !important;
}
