/* Neo-Brutalist Styles with Smooth Transitions */
header h1 {
    animation: slideDown 0.6s ease-out forwards;
}

.brutalist-card {
    border: 4px solid #000;
    box-shadow: 8px 8px 0px #000;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, var(--card-color) 0%, var(--card-color-light) 100%);
}

.brutalist-card:hover {
    box-shadow: 10px 10px 0px #000;
}

.brutalist-card:active {
    box-shadow: 5px 5px 0px #000;
    transform: translate(2px, 2px);
}

.brutalist-btn {
    border: 3px solid #000;
    box-shadow: 5px 5px 0px #000;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 900;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.brutalist-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.brutalist-btn:hover::before {
    left: 100%;
}

.brutalist-btn:hover {
    box-shadow: 7px 7px 0px #000;
}

.brutalist-btn:active {
    box-shadow: 2px 2px 0px #000;
    transform: translate(2px, 2px);
}

.brutalist-input {
    border: 3px solid #000;
    box-shadow: 4px 4px 0px #000;
    font-weight: 700;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.brutalist-input:focus {
    outline: none;
    box-shadow: 6px 6px 0px #000;
    transform: translate(-2px, -2px);
    border-color: #4F46E5;
}

.nav-btn {
    border: 3px solid #000;
    font-weight: 900;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 5px 5px 0px #000;
    background-color: #fff;
}

.nav-btn:hover {
    background: #FEF08A;
    box-shadow: 7px 7px 0px #000;
}

.nav-btn:active {
    background: #FDE047;
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px #000;
}

.nav-btn.active {
    background: linear-gradient(135deg, #FDE047 0%, #FACC15 100%);
    box-shadow: 5px 5px 0px #000;
}

.nav-btn.active:hover {
    transform: translate(-1px, -1px);
    box-shadow: 6px 6px 0px #000;
}

.debt-item {
    border-left: 6px solid #000;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.debt-item:hover {
    transform: translateX(3px);
    border-left-color: #EF4444;
    background-color: #FEF2F2;
}

.payment-item {
    border-left: 6px solid #10B981;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.payment-item:hover {
    transform: translateX(3px);
    border-left-color: #059669;
    background-color: #F0FDF4;
}

.metric-card {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

/* Fix for customer list spacing */
#customer-list>.brutalist-card {
    margin-bottom: 12px;
}

#customer-list>.brutalist-card:last-child {
    margin-bottom: 0;
}

@media (hover: none) and (pointer: coarse) {
    .brutalist-btn:active {
        box-shadow: 3px 3px 0px #000;
        transform: translate(2px, 2px);
    }

    .brutalist-input:focus {
        box-shadow: 6px 6px 0px #000;
    }

    .nav-btn:active {
        transform: translateY(0);
        background: #FDE047;
    }
}

/* Modal Styles for Centering */
.modal-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 50;
    padding: 16px;
    backdrop-filter: blur(2px);
}

.modal-content {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    max-height: 90vh;
    overflow-y: auto;
    width: 100%;
}

/* Update Progress Bar */
.update-progress-container {
    border: 3px solid #000;
    background-color: #fff;
    height: 24px;
    margin-top: 15px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.update-progress-fill {
    background-color: #000;
    height: 100%;
    width: 0%;
    transition: width 4s linear;
}