:root {
    --primary: #4f46e5;
    --danger: #ef4444;
    --success: #10b981;
    --warning: #f59e0b;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Cards & Inputs */
.card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.input-std {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: all 0.2s;
    box-sizing: border-box;
}

.input-std:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.input-lock {
    background-color: #f8fafc;
    color: #94a3b8;
    border-color: #e2e8f0;
    cursor: default;
    font-weight: 600;
}

/* Tabs */
.tab-active {
    border-bottom: 3px solid var(--primary);
    color: var(--primary);
    font-weight: 700;
    background: #eef2ff;
}

.tab-inactive {
    color: #64748b;
    transition: all 0.3s;
}

.tab-inactive:hover {
    color: #374151;
    background: #f3f4f6;
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.modal-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.hide {
    display: none !important;
}

/* Utilities */
.status-positive { color: #10b981; }
.status-warning { color: #f59e0b; }
.status-negative { color: #ef4444; }
.status-info { color: #64748b; }

.tag-item {
    display: inline-flex;
    align-items: center;
    background: #f3f4f6;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    margin: 4px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}

.tag-item:hover {
    background: #e5e7eb;
}

.tag-item-editable {
    cursor: pointer;
}

.tag-item-editable:hover {
    background: #e0e7ff;
    border-color: var(--primary);
}

.mini-funnel {
    background: linear-gradient(135deg, #f0f9ff, #e0e7ff);
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    margin: 8px 0;
}

.conversion-badge {
    display: inline-block;
    background: #e0e7ff;
    color: var(--primary);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
}

/* Dynamic colors for expense types */
.bg-orange-50 { background-color: #fff7ed; }
.bg-orange-100 { background-color: #ffedd5; }
.border-orange-200 { border-color: #fed7aa; }
.text-orange-600 { color: #ea580c; }
.text-orange-700 { color: #c2410c; }

/* Progress bars */
.progress-bar {
    height: 8px;
    background-color: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card {
        padding: 1rem;
    }
    
    nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    nav::-webkit-scrollbar {
        display: none;
    }
    
    nav button {
        white-space: nowrap;
        flex-shrink: 0;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #e2e8f0;
    }
}
