
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', sans-serif; background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%); min-height: 100vh; padding: 15px; }
.container { max-width: 1000px; margin: 5px auto; background: white; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); overflow: hidden; }
.header { background: linear-gradient(135deg, #1b5e20, #2e7d32); color: white; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.header h2 { font-size: 18px; }
.header-right { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-link { background: rgba(255,255,255,0.2); color: white; border: 2px solid white; padding: 6px 12px; border-radius: 6px; font-weight: 600; font-size: 12px; text-decoration: none; }
.content { padding: 15px 20px; }

/* Big Number Card */
.big-card { background: linear-gradient(135deg, #1b5e20, #388e3c); border-radius: 14px; padding: 20px; color: white; margin-bottom: 15px; text-align: center; }
.big-label { font-size: 12px; font-weight: 600; opacity: 0.8; }
.big-number { font-size: 36px; font-weight: 900; margin: 4px 0; }
.big-sub { font-size: 13px; opacity: 0.8; }
.big-row { display: flex; justify-content: space-around; margin-top: 15px; }
.big-item { text-align: center; }
.big-item .bi-val { font-size: 20px; font-weight: 800; }
.big-item .bi-lbl { font-size: 10px; opacity: 0.7; }

/* Usage Gauge */
.gauge-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 15px; }
.gauge-card { border-radius: 12px; padding: 15px; text-align: center; }
.gauge-pessoal { background: #f3e5f5; color: #4a0e8f; }
.gauge-business { background: #e3f2fd; color: #1565c0; }
.gauge-title { font-size: 12px; font-weight: 700; margin-bottom: 8px; }
.gauge-circle { width: 90px; height: 90px; border-radius: 50%; margin: 0 auto 8px; position: relative; display: flex; align-items: center; justify-content: center; }
.gauge-circle .gc-val { font-size: 22px; font-weight: 900; }
.gauge-info { font-size: 11px; opacity: 0.8; }

/* Stats Grid */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 15px; }
.stat-card { border-radius: 10px; padding: 10px 6px; text-align: center; }
.stat-card .s-label { font-size: 9px; font-weight: 700; text-transform: uppercase; opacity: 0.8; }
.stat-card .s-value { font-size: 16px; font-weight: 800; margin-top: 2px; }
.st-total { background: #e8f5e9; color: #1b5e20; }
.st-acima { background: #fdecea; color: #c62828; }
.st-zero { background: #e3f2fd; color: #1565c0; }
.st-pagos { background: #fff3e0; color: #e65100; }

/* Section Title */
.sec-title { font-size: 15px; font-weight: 800; color: #333; margin-bottom: 10px; padding-bottom: 6px; border-bottom: 3px solid #2e7d32; display: flex; align-items: center; gap: 8px; }

/* Usage bars chart */
.usage-chart { margin-bottom: 20px; }
.usage-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; cursor: pointer; transition: all 0.2s; padding: 4px; border-radius: 6px; }
.usage-row:hover { background: #f5f5f5; }
.usage-name { width: 140px; font-size: 11px; font-weight: 600; color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.usage-bar-bg { flex: 1; height: 18px; background: #f0f0f0; border-radius: 9px; overflow: hidden; position: relative; }
.usage-bar-fill { height: 100%; border-radius: 9px; transition: width 0.8s ease; display: flex; align-items: center; justify-content: flex-end; padding-right: 6px; }
.usage-bar-text { font-size: 9px; font-weight: 700; color: white; white-space: nowrap; }
.usage-pct { width: 40px; font-size: 12px; font-weight: 800; text-align: right; }
.usage-amt { width: 70px; font-size: 10px; color: #888; text-align: right; }
.fill-green { background: linear-gradient(90deg, #43a047, #66bb6a); }
.fill-yellow { background: linear-gradient(90deg, #ff9800, #ffb74d); }
.fill-red { background: linear-gradient(90deg, #e53935, #ef5350); }
.fill-zero { background: #e0e0e0; }

/* Bank breakdown */
.bank-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 20px; }
.bank-card { border: 2px solid #e8e8e8; border-radius: 10px; padding: 10px; }
.bank-name { font-size: 13px; font-weight: 700; color: #333; margin-bottom: 4px; }
.bank-info { font-size: 11px; color: #888; }
.bank-bar { height: 5px; background: #f0f0f0; border-radius: 3px; margin-top: 6px; overflow: hidden; }
.bank-fill { height: 100%; border-radius: 3px; }

/* Card mini grid */
.card-mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 20px; }
.card-mini { border: 2px solid #e0e0e0; border-radius: 10px; padding: 10px; cursor: pointer; transition: all 0.2s; position: relative; overflow: hidden; }
.card-mini:hover { border-color: #2e7d32; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.card-mini.cm-business { border-left: 4px solid #1565c0; }
.card-mini.cm-pessoal { border-left: 4px solid #7c4dff; }
.card-mini.cm-danger { border-color: #e53935; }
.cm-name { font-size: 11px; font-weight: 700; color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-digits { font-size: 10px; color: #aaa; }
.cm-saldo { font-size: 16px; font-weight: 800; margin: 4px 0; }
.cm-limite { font-size: 10px; color: #888; }
.cm-bar { height: 4px; background: #f0f0f0; border-radius: 2px; margin-top: 4px; overflow: hidden; }
.cm-fill { height: 100%; border-radius: 2px; }
.cm-pago { position: absolute; top: 6px; right: 6px; font-size: 10px; background: #e8f5e9; color: #1b5e20; padding: 1px 5px; border-radius: 6px; font-weight: 700; }

/* Filter tabs */
.filter-tabs { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.filter-tab { padding: 6px 12px; border-radius: 18px; border: 2px solid #ddd; background: white; font-size: 11px; font-weight: 600; cursor: pointer; color: #555; }
.filter-tab.active { background: #2e7d32; color: white; border-color: #2e7d32; }

/* Dark Mode */
body.dark-mode { background: linear-gradient(135deg, #0a2e0a 0%, #16213e 100%); }
body.dark-mode .container { background: #0f0f23; color: #e0e0e0; }
body.dark-mode .sec-title { color: #e0e0e0; border-color: #43a047; }
body.dark-mode .usage-name { color: #e0e0e0; }
body.dark-mode .usage-row:hover { background: #16213e; }
body.dark-mode .usage-bar-bg { background: #2a2a4a; }
body.dark-mode .bank-card { border-color: #333; background: #16213e; }
body.dark-mode .bank-name { color: #e0e0e0; }
body.dark-mode .bank-bar { background: #2a2a4a; }
body.dark-mode .card-mini { border-color: #333; background: #16213e; }
body.dark-mode .cm-name { color: #e0e0e0; }
body.dark-mode .cm-bar { background: #2a2a4a; }
body.dark-mode .filter-tab { background: #16213e; border-color: #333; color: #aaa; }
body.dark-mode .stat-card.st-total { background: #152e15; }
body.dark-mode .stat-card.st-acima { background: #2e1515; }
body.dark-mode .stat-card.st-zero { background: #152030; }
body.dark-mode .stat-card.st-pagos { background: #2e2515; }
body.dark-mode .gauge-pessoal { background: #2d1a4e; }
body.dark-mode .gauge-business { background: #152030; }
body.dark-mode .fill-zero { background: #444; }

@media (max-width: 600px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .gauge-row { grid-template-columns: 1fr 1fr; }
    .bank-grid { grid-template-columns: 1fr !important; }
    .card-mini-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .header { flex-direction: column; text-align: center; }
    .usage-name { width: 80px; font-size: 10px; }
}

