/* Custom Styles - Standalone CSS (No CDN Dependencies) */
:root {
  --bg-main: #0f172a;
  --bg-card: #1e293b;
  --text-main: #f8fafc;
  --text-sub: #94a3b8;
  --border: #334155;
  --brand: #3b82f6;
  --profit: #22c55e;
  --loss: #ef4444;
}

body.light {
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-sub: #64748b;
  --border: #e2e8f0;
  --brand: #2563eb;
  --profit: #16a34a;
  --loss: #dc2626;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  padding-bottom: 80px;
}

.header {
  position: sticky; top: 0; z-index: 40;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  display: flex; justify-content: space-between; align-items: center;
}

.nav-bottom {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  background-color: var(--bg-card);
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-around; padding: 10px 0;
}

.nav-item {
  display: flex; flex-direction: column; align-items: center;
  font-size: 11px; color: var(--text-sub); text-decoration: none; cursor: pointer;
  background: none; border: none; flex: 1;
}

.nav-item.active { color: var(--brand); font-weight: bold; }
.nav-icon { font-size: 20px; margin-bottom: 2px; }

.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px; padding: 16px; margin: 12px 16px;
}

.btn {
  background-color: var(--brand); color: #fff; border: none;
  padding: 10px 16px; border-radius: 8px; font-weight: bold; cursor: pointer;
  width: 100%; text-align: center; display: inline-block;
}

.btn-sm { padding: 6px 12px; font-size: 12px; width: auto; }
.btn-danger { background-color: var(--loss); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text-main); }

.input-group { margin-bottom: 12px; }
.input-label { display: block; font-size: 12px; color: var(--text-sub); margin-bottom: 4px; }
.input-field {
  width: 100%; background: var(--bg-main); border: 1px solid var(--border);
  color: var(--text-main); padding: 10px; border-radius: 8px; font-size: 14px;
}

.badge {
  display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: bold;
}
.badge-profit { background: rgba(34, 197, 94, 0.15); color: var(--profit); }
.badge-loss { background: rgba(239, 68, 68, 0.15); color: var(--loss); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }

.pwa-banner {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white; padding: 12px 16px; text-align: center; font-weight: bold;
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
}
