/* Custom styles beyond Tailwind */
.expense-card {
    transition: transform 0.2s ease-in-out;
    position: relative;
}

.expense-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Analytics button on card */
.analytics-button {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    z-index: 10;
}

.analytics-button:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
}

.analytics-button:active {
    transform: scale(0.95);
}

.card-icon {
    font-size: 2rem;
}

/* Form popup animation */
#expense-form-popup {
    transition: opacity 0.3s ease;
}

#expense-form-popup.hidden {
    display: none !important;
    opacity: 0;
}

#expense-form-popup .bg-white {
    transform: translateY(0);
    transition: transform 0.3s ease;
}

/* Form input focus styles */
input:focus, textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

/* Make sure number inputs look consistent across browsers */
input[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Floating Action Button (FAB) */
.fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    z-index: 40;
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.fab:active {
    transform: scale(0.95);
}

.fab i {
    transition: transform 0.3s ease;
}

/* Smooth transitions for view toggle */
#expense-cards, #chart-view {
    transition: opacity 0.3s ease;
}

#chart-view.hidden {
    display: none !important;
}
