* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Plus Jakarta Sans', sans-serif; background: #0f172a; color: #e2e8f0; min-height: 100vh; }
.app { max-width: 1060px; margin: 0 auto; padding: 32px 24px; }
.header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 16px; }
.header h1 { font-size: 26px; font-weight: 700; color: #818cf8; }
.header-stats { display: flex; gap: 24px; }
.hstat { text-align: center; }
.hstat-val { display: block; font-size: 20px; font-weight: 700; color: #a5b4fc; }
.hstat-lbl { font-size: 11px; color: #64748b; text-transform: uppercase; letter-spacing: 0.5px; }
.tabs { display: flex; gap: 4px; background: #1e293b; border-radius: 10px; padding: 4px; margin-bottom: 24px; width: fit-content; }
.tabs button { padding: 8px 20px; border: none; border-radius: 8px; background: transparent; color: #94a3b8; font-size: 13px; font-weight: 500; cursor: pointer; font-family: inherit; transition: all 0.2s; }
.tabs button.active { background: #4f46e5; color: white; }
.content-grid { display: grid; grid-template-columns: 1fr 300px; gap: 24px; }
.main-panel { min-height: 400px; }
.expense-list { display: flex; flex-direction: column; gap: 8px; }
.expense-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: #1e293b; border-radius: 10px; border: 1px solid #334155; transition: border-color 0.2s; }
.expense-item:hover { border-color: #4f46e5; }
.exp-cat { width: 38px; height: 38px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; flex-shrink: 0; }
.exp-info { flex: 1; }
.exp-info h4 { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.exp-info span { font-size: 12px; color: #64748b; }
.exp-info strong { color: #a5b4fc; }
.exp-amount { font-size: 16px; font-weight: 700; color: #e2e8f0; }
.balance-list { display: flex; flex-direction: column; gap: 10px; }
.balance-item { display: flex; align-items: center; gap: 14px; padding: 16px; background: #1e293b; border-radius: 10px; }
.bal-avatar { width: 40px; height: 40px; border-radius: 50%; background: #4f46e5; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; }
.bal-name { flex: 1; font-weight: 500; }
.bal-amount { font-size: 18px; font-weight: 700; }
.bal-amount.positive { color: #4ade80; }
.bal-amount.negative { color: #f87171; }
.settle-list h3 { margin-bottom: 16px; font-size: 16px; }
.settle-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #1e293b; border-radius: 10px; margin-bottom: 8px; }
.settle-from { font-weight: 600; color: #f87171; }
.settle-arrow { color: #64748b; font-size: 18px; }
.settle-to { font-weight: 600; color: #4ade80; }
.settle-amt { margin-left: auto; font-weight: 700; color: #a5b4fc; font-size: 16px; }
.side-panel { background: #1e293b; border-radius: 14px; padding: 20px; border: 1px solid #334155; height: fit-content; }
.side-panel h3 { font-size: 14px; font-weight: 600; margin-bottom: 16px; color: #a5b4fc; }
.pie-container { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.pie-svg { width: 180px; height: 180px; }
.pie-legend { width: 100%; }
.legend-item { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 12px; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.legend-label { flex: 1; color: #94a3b8; }
.legend-value { font-weight: 600; color: #e2e8f0; }
@media (max-width: 768px) { .content-grid { grid-template-columns: 1fr; } .header { flex-direction: column; align-items: flex-start; } }
