*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Inter,sans-serif;background:#f5f7fa;color:#1a1a2e;-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.container{max-width:1200px;margin:0 auto;padding:20px;padding-bottom:calc(20px + env(safe-area-inset-bottom))}.card{background:#fff;border-radius:12px;padding:24px;box-shadow:0 2px 8px #00000014;margin-bottom:20px}.btn{padding:12px 24px;border:none;border-radius:8px;cursor:pointer;font-weight:600;transition:all .2s}.btn-primary{background:#4f46e5;color:#fff}.btn-primary:hover{background:#4338ca}.btn-danger{background:#ef4444;color:#fff}.btn-success{background:#10b981;color:#fff}.btn-google{background:#fff;border:1px solid #ddd;display:flex;align-items:center;gap:10px;padding:12px 32px}input,select,textarea{width:100%;padding:12px;border:1px solid #e5e7eb;border-radius:8px;font-size:14px;margin-bottom:16px}input:focus,select:focus,textarea:focus{outline:none;border-color:#4f46e5}.form-group{margin-bottom:16px}.form-group label{display:block;margin-bottom:6px;font-weight:500;color:#374151}.tabs{display:flex;gap:8px;margin-bottom:20px;border-bottom:2px solid #e5e7eb;padding-bottom:8px}.tab{padding:10px 20px;border:none;background:none;cursor:pointer;font-weight:500;color:#6b7280;border-radius:8px 8px 0 0;transition:all .2s}.tab.active{color:#4f46e5;background:#eef2ff}.nav{background:#fff;padding:12px 16px;padding-top:calc(12px + env(safe-area-inset-top));display:flex;flex-direction:column;gap:12px;box-shadow:0 2px 4px #0000000d;margin-bottom:16px}.nav-header{display:flex;justify-content:space-between;align-items:center}.nav-links{display:flex;gap:4px;overflow-x:auto;-webkit-overflow-scrolling:touch;padding-bottom:4px}.nav-links a{text-decoration:none;color:#6b7280;font-weight:500;padding:8px 12px;border-radius:8px;transition:all .2s;white-space:nowrap;font-size:14px}.nav-links a:hover,.nav-links a.active{color:#4f46e5;background:#eef2ff}.type-tabs{display:flex;gap:8px;margin-bottom:20px}.type-tab{flex:1;padding:12px;border:2px solid #e5e7eb;background:#fff;cursor:pointer;font-weight:600;border-radius:8px;transition:all .2s}.type-tab.expense.active{border-color:#ef4444;background:#fef2f2;color:#ef4444}.type-tab.income.active{border-color:#10b981;background:#ecfdf5;color:#10b981}.type-tab.transfer.active{border-color:#3b82f6;background:#eff6ff;color:#3b82f6}.transaction-list{display:flex;flex-direction:column;gap:12px}.transaction-item{display:flex;justify-content:space-between;align-items:center;padding:16px;background:#fff;border-radius:10px;box-shadow:0 1px 3px #0000000d}.transaction-info{display:flex;flex-direction:column;gap:4px}.transaction-category{font-weight:600;color:#1f2937}.transaction-meta{font-size:12px;color:#9ca3af}.transaction-amount{font-weight:700;font-size:18px}.transaction-amount.expense{color:#ef4444}.transaction-amount.income{color:#10b981}.transaction-amount.transfer{color:#3b82f6}.summary-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;margin-bottom:24px}.summary-card{padding:20px;border-radius:12px;color:#fff}.summary-card.income{background:linear-gradient(135deg,#10b981,#059669)}.summary-card.expense{background:linear-gradient(135deg,#ef4444,#dc2626)}.summary-card.balance{background:linear-gradient(135deg,#4f46e5,#4338ca)}.summary-card h3{font-size:14px;opacity:.9;margin-bottom:8px}.summary-card .amount{font-size:28px;font-weight:700}.chart-container{max-width:400px;margin:0 auto 24px}.stats-table{width:100%;border-collapse:collapse}.stats-table th,.stats-table td{padding:12px;text-align:left;border-bottom:1px solid #e5e7eb}.stats-table th{background:#f9fafb;font-weight:600}.login-container{min-height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#4f46e5,#7c3aed)}.login-card{background:#fff;padding:48px;border-radius:16px;text-align:center;box-shadow:0 20px 40px #0003}.login-card h1{margin-bottom:8px;color:#1f2937}.login-card p{color:#6b7280;margin-bottom:32px}.add-option{display:flex;gap:8px;margin-bottom:16px}.add-option input{margin-bottom:0}.add-option button{white-space:nowrap}.date-filters{display:flex;gap:12px;margin-bottom:20px;flex-wrap:wrap}.date-filters input,.date-filters select{width:auto;margin-bottom:0}.modal-overlay{position:fixed;inset:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000}.modal{background:#fff;padding:24px;border-radius:12px;width:90%;max-width:500px;max-height:90vh;overflow-y:auto}.modal h2{margin-bottom:20px}.file-input-wrapper{position:relative;margin-bottom:16px}.file-input-wrapper input[type=file]{padding:20px;border:2px dashed #e5e7eb;background:#f9fafb}.delete-btn{background:none;border:none;color:#ef4444;cursor:pointer;padding:4px 8px}.group-header{font-weight:600;color:#6b7280;padding:12px 0;border-bottom:1px solid #e5e7eb;margin-top:16px}.export-btns{display:flex;gap:8px;margin-bottom:20px}@media(max-width:768px){.container{padding:12px}.card{padding:16px;border-radius:10px}.summary-cards{grid-template-columns:1fr;gap:12px}.summary-card .amount{font-size:24px}.login-card{padding:24px;margin:16px;width:calc(100% - 32px)}.btn{padding:10px 16px}.type-tabs{gap:4px}.type-tab{padding:10px 8px;font-size:13px}.tabs{overflow-x:auto;-webkit-overflow-scrolling:touch}.tab{padding:8px 12px;font-size:13px;white-space:nowrap}.date-filters{flex-direction:column;gap:8px}.date-filters input,.date-filters select{width:100%}.export-btns{flex-wrap:wrap}.export-btns .btn{flex:1;min-width:100px;font-size:12px;padding:8px 12px}.add-option{flex-direction:column}.add-option input{margin-bottom:8px}.transaction-item{padding:12px}.transaction-amount{font-size:16px}.stats-table{font-size:13px}.stats-table th,.stats-table td{padding:8px}}input,textarea,select{-webkit-user-select:text;user-select:text}
