:root {
    --primary: #2563eb;
    --success: #22c55e;
    --danger: #ef4444;
    --dark: #1e293b;
    --bg: #f1f5f9;
}

body { font-family: 'Segoe UI', sans-serif; background: var(--bg); margin: 0; padding: 20px; color: var(--dark); }
.app-container { max-width: 800px; margin: auto; }
header { text-align: center; margin-bottom: 30px; }
.badge { background: gold; color: black; font-size: 12px; padding: 2px 8px; border-radius: 5px; }

/* Stats Grid */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 15px; margin-bottom: 20px; }
.stat-box { background: white; padding: 20px; border-radius: 12px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); text-align: center; }
.income-box { border-bottom: 4px solid var(--primary); }
.expense-box { border-bottom: 4px solid var(--danger); }
.profit-box { border-bottom: 4px solid var(--success); }

/* Cards */
.card { background: white; padding: 20px; border-radius: 12px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); margin-bottom: 20px; }
.input-row { display: flex; gap: 10px; flex-wrap: wrap; }
input { flex: 1; padding: 12px; border: 1px solid #cbd5e1; border-radius: 8px; min-width: 140px; }
.save-btn { background: var(--primary); color: white; border: none; padding: 12px 24px; border-radius: 8px; cursor: pointer; font-weight: bold; }

/* Table */
.table-container { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; margin-top: 15px; }
th, td { padding: 12px; text-align: left; border-bottom: 1px solid #e2e8f0; }
th { background: #f8fafc; color: #64748b; font-size: 13px; }

/* Report Card Section */
.report-card { border: 2px dashed var(--primary); background: #f0f7ff; text-align: center; }
.txt-blue { color: var(--primary); font-weight: bold; }
.txt-red { color: var(--danger); font-weight: bold; }
#monthFinalResult { font-size: 26px; padding: 10px; border-radius: 8px; margin-top: 10px; }

/* Modal & Footer */
footer { text-align: center; margin-top: 40px; color: #64748b; font-size: 14px; }
.modal { display: none; position: fixed; z-index: 100; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); }
.modal-content { background: white; margin: 15% auto; padding: 25px; border-radius: 12px; width: 85%; max-width: 400px; position: relative; }
.close { position: absolute; right: 15px; top: 10px; font-size: 24px; cursor: pointer; }
.delete-btn { background: #fee2e2; color: var(--danger); border: none; padding: 6px 12px; border-radius: 5px; cursor: pointer; }
.reset-btn { background: #f1f5f9; border: none; padding: 6px 12px; border-radius: 5px; cursor: pointer; color: #64748b; }