
:root {
  --primary: #6366f1; --primary-dark: #4f46e5; --success: #10b981; --danger: #ef4444;
  --warning: #f59e0b; --bg: #f4f5f9; --card-bg: #ffffff; --text-muted: #6b7280; --radius: 14px;
}
* { box-sizing: border-box; }
body { background: var(--bg); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: #1f2937; padding-bottom: 70px; }
.navbar-app { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; padding: 14px 20px; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.navbar-app .brand { font-weight: 700; font-size: 1.15rem; text-decoration: none; color: white; }
.navbar-app .brand:hover { color: white; }
.desktop-nav { display: flex; gap: 4px; }
.desktop-nav a { color: rgba(255,255,255,0.85); text-decoration: none; padding: 8px 14px; border-radius: 10px; font-size: 0.9rem; font-weight: 500; transition: background 0.15s; }
.desktop-nav a:hover, .desktop-nav a.active { background: rgba(255,255,255,0.18); color: white; }
.bottom-nav { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: white; border-top: 1px solid #e5e7eb; z-index: 200; box-shadow: 0 -2px 10px rgba(0,0,0,0.06); }
.bottom-nav .items { display: flex; }
.bottom-nav a { flex: 1; text-align: center; padding: 8px 2px 6px; color: #9ca3af; text-decoration: none; font-size: 0.68rem; font-weight: 600; }
.bottom-nav a .icon { font-size: 1.25rem; display: block; margin-bottom: 2px; }
.bottom-nav a.active { color: var(--primary); }
@media (max-width: 768px) { .desktop-nav { display: none; } .bottom-nav { display: block; } body { padding-bottom: 76px; } }
.container-app { max-width: 1100px; margin: 0 auto; padding: 20px 16px; }
.card-app { background: var(--card-bg); border-radius: var(--radius); padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04); border: 1px solid #eef0f4; margin-bottom: 18px; }
.card-title-app { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.03em; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat-card { background: var(--card-bg); border-radius: var(--radius); padding: 18px; border: 1px solid #eef0f4; box-shadow: 0 1px 3px rgba(0,0,0,0.05); display:flex; flex-direction:column; gap:6px; }
.stat-value { font-size: 1.6rem; font-weight: 800; margin-top: 4px; }
.stat-label { font-size: 0.78rem; color: var(--text-muted); font-weight: 600; }
.stat-positive { color: var(--success); }
.stat-negative { color: var(--danger); }
.btn-app { display: inline-flex; align-items: center; gap: 6px; border-radius: 10px; padding: 9px 16px; font-weight: 600; font-size: 0.88rem; border: none; cursor: pointer; text-decoration: none; transition: transform 0.1s, opacity 0.15s; white-space: nowrap; }
.btn-app:active { transform: scale(0.97); }
.btn-primary-app { background: var(--primary); color: white; }
.btn-primary-app:hover { background: var(--primary-dark); color: white; }
.btn-outline-app { background: white; border: 1.5px solid #e5e7eb; color: #374151; }
.btn-outline-app:hover { background: #f9fafb; color: #374151; }
.btn-outline-app:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-danger-app { background: #fee2e2; color: var(--danger); }
.btn-success-app { background: #d1fae5; color: #065f46; }
.btn-warning-app { background: #fef3c7; color: #92400e; }
.btn-sm-app { padding: 5px 10px; font-size: 0.78rem; }
.btn-block-app { width: 100%; justify-content: center; }
.form-control-app, .form-select-app { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1.5px solid #e5e7eb; font-size: 0.92rem; background: white; }
.form-control-app:focus, .form-select-app:focus { outline: none; border-color: var(--primary); }
.form-label-app { font-size: 0.82rem; font-weight: 600; color: #374151; margin-bottom: 5px; display: block; }
.table-app { width: 100%; border-collapse: separate; border-spacing: 0; }
.table-app th { text-align: left; font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; padding: 10px 12px; border-bottom: 2px solid #f0f1f5; letter-spacing: 0.03em; }
.table-app td { padding: 12px; border-bottom: 1px solid #f5f6f8; font-size: 0.9rem; vertical-align: middle; }
.table-app tr:last-child td { border-bottom: none; }
.table-responsive-app { overflow-x: auto; border-radius: var(--radius); background: white; border: 1px solid #eef0f4; }
.badge-app { display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: 0.72rem; font-weight: 700; }
.badge-secondary-app { background: #eef0f4; color: #4b5563; }
.badge-info-app { background: #dbeafe; color: #1e40af; }
.badge-light-app { background: #f3f4f6; color: #6b7280; }
.badge-success-app { background: #d1fae5; color: #065f46; }
.alert-app { padding: 12px 16px; border-radius: 10px; margin-bottom: 14px; font-size: 0.88rem; font-weight: 500; }
.alert-success-app { background: #d1fae5; color: #065f46; }
.alert-danger-app { background: #fee2e2; color: #991b1b; }
.alert-warning-app { background: #fef3c7; color: #92400e; }
.alert-info-app { background: #dbeafe; color: #1e40af; }
.page-title { font-size: 1.4rem; font-weight: 800; margin-bottom: 18px; }
.section-title { font-size: 1rem; font-weight: 700; margin-bottom: 12px; }
.chart-wrap { position: relative; height: 260px; }
.person-chip { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 0.88rem; }
.person-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.row-app { display: flex; gap: 16px; flex-wrap: wrap; }
.col-app { flex: 1; min-width: 260px; }
.list-clean { list-style: none; padding: 0; margin: 0; }
.list-clean li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #f5f6f8; font-size: 0.9rem; }
.list-clean li:last-child { border-bottom: none; }
.settings-section { margin-bottom: 24px; }
.color-swatch { width: 34px; height: 34px; border-radius: 8px; border: 2px solid #e5e7eb; cursor: pointer; padding: 0; }
.month-switcher { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; background: white; border-radius: var(--radius); padding: 10px 14px; border: 1px solid #eef0f4; }
.month-switcher select { border: none; font-weight: 700; font-size: 1rem; background: transparent; }
.month-current-badge { background: #eef2ff; color: var(--primary); font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; margin-left: 8px; }
.profile-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; border: 1px solid #eef0f4; border-radius: 12px; margin-bottom: 10px; }
.checkbox-row { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; color: #374151; }
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(15,23,42,0.5); z-index: 500; align-items: center; justify-content: center; padding: 16px; }
.modal-overlay.active { display: flex; }
.modal-box { background: white; border-radius: var(--radius); padding: 22px; width: 100%; max-width: 420px; box-shadow: 0 20px 40px rgba(0,0,0,0.2); }
.modal-box .card-title-app { margin-bottom: 14px; }
.modal-close { float: right; cursor: pointer; font-size: 1.3rem; color: #9ca3af; line-height: 1; background:none; border:none; }
.highlight-card { border: 1.5px solid #e0e3fb; background: #fafaff; }
