:root {
  --app-header-bg: #1E293B;
  --primary-blue: #0284C7;
  --status-green-bg: #DCFCE7;
  --status-green-text: #15803D;
  --status-green-border: #86EFAC;
  --bg-light: #F8FAFC;
  --card-bg: #FFFFFF;
  --border-color: #E2E8F0;
  --text-dark: #0F172A;
  --nav-height: 60px;
}

body {
  background-color: var(--bg-light);
  color: var(--text-dark);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.app-header {
  height: 56px;
  background-color: var(--app-header-bg);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.status-badge.online { background-color: #10B981; color: white; padding: 4px 10px; border-radius: 12px; font-weight: bold; }
.status-badge.offline { background-color: #F59E0B; color: white; padding: 4px 10px; border-radius: 12px; font-weight: bold; }

.main-container { flex: 1; overflow-y: auto; padding: 16px; padding-bottom: calc(var(--nav-height) + 20px); }
.view-section { display: none; }
.view-section.active { display: block; }

.deck-card {
  background: white;
  border-radius: 10px;
  border: 2px solid var(--border-color);
  padding: 16px;
  margin-bottom: 12px;
}
.deck-card.wip-ready {
  border-color: var(--status-green-border);
  background-color: #F0FDF4;
}

.badge-chip.green { background: var(--status-green-bg); color: var(--status-green-text); padding: 4px 8px; border-radius: 10px; font-weight: bold; }

.app-bottom-nav {
  position: fixed; bottom: 0; left: 0; width: 100%; height: var(--nav-height);
  background: var(--app-header-bg); display: flex; justify-content: space-around; align-items: center;
}
.nav-item { background: none; border: none; color: #94A3B8; display: flex; flex-direction: column; align-items: center; cursor: pointer; }
.nav-item.active { color: #38BDF8; }