:root {
    --primary: #0d6efd;
    --bg: #f8f9fa;
}

body {
    background-color: var(--bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    padding-bottom: 0;
}

/* Card styling */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid #eee;
    font-weight: 600;
}

/* Summary cards */
.summary-card {
    border-radius: 12px;
    color: white;
    padding: 1.25rem;
}

.summary-card .amount {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Expense item */
.expense-item {
    border-radius: 12px;
    transition: transform 0.15s ease;
}

.expense-item:active {
    transform: scale(0.98);
}

.expense-thumb {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    background: #eee;
}

.expense-amount {
    font-weight: 700;
    color: #dc3545;
    white-space: nowrap;
}

/* Form */
.form-control, .form-select {
    border-radius: 10px;
    padding: 0.7rem 0.9rem;
}

.btn {
    border-radius: 10px;
    padding: 0.65rem 1.2rem;
    font-weight: 500;
}

.btn-lg {
    padding: 0.85rem 1.5rem;
}

/* Camera preview */
#photo-preview {
    max-height: 220px;
    width: 100%;
    object-fit: contain;
    border-radius: 12px;
    background: #f1f3f5;
    display: none;
}

#photo-preview.show {
    display: block;
}

.camera-box {
    border: 2px dashed #ced4da;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s;
}

.camera-box:hover, .camera-box.dragover {
    border-color: var(--primary);
    background: #f0f7ff;
}

/* Auth pages */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    padding: 1rem;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    border-radius: 16px;
    overflow: hidden;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 3rem;
    opacity: 0.4;
}

/* Badge kategori */
.badge-cat {
    font-weight: 500;
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
    border-radius: 6px;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }
    
    .summary-card .amount {
        font-size: 1.3rem;
    }
}

/* Loading spinner */
.spinner-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner-overlay.show {
    display: flex;
}
