:root {
  --bg-color: #0d0e11;
  --card-bg: #131419;
  --border-color: #23262f;
  --text-color: #e1e4ed;
  --text-muted: #62687a;
  --accent: #3ba55d;
  --accent-hover: #2d8246;
  --accent-blue: #5865f2;
  --danger: #ed4245;
  --font-mono: 'JetBrains Mono', 'Cascadia Code', Consolas, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  background: var(--bg-color);
  overflow-x: hidden;
  color: var(--text-color);
  font-family: var(--font-mono);
}

/* ---------- Top Navigation Bar ---------- */
.top-bar {
  background: #131419;
  border-bottom: 1px solid #23262f;
  padding: 0.75rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.brand-title {
  color: #3ba55d;
  font-weight: bold;
  text-decoration: none;
  font-size: 1.05rem;
}

.nav-links {
  display: flex;
  gap: 0.75rem;
}

.nav-item {
  color: #62687a;
  text-decoration: none;
  font-size: 0.85rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.nav-item:hover, .nav-item.active {
  color: #e1e4ed;
  background: #23262f;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.85rem;
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: #191b22;
  padding: 0.25rem 0.6rem;
  border: 1px solid #23262f;
  border-radius: 4px;
  color: var(--text-color);
  text-decoration: none;
  transition: border-color 0.15s ease;
}

.user-badge:hover {
  border-color: var(--accent);
}

.status-dot {
  width: 7px;
  height: 7px;
  background-color: #3ba55d;
  border-radius: 50%;
}

.clock {
  color: #62687a;
}

/* Universal Admin Visibility */
body:not(.is-admin) .admin-only {
  display: none !important;
}

/* ---------- footer (static) ---------- */
.footer {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 24px;
  background: var(--card-bg);
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.78em;
}

.footer a { 
  color: var(--text-muted); 
  text-decoration: none; 
  transition: color 0.12s ease;
}

.footer a:hover { 
  color: var(--accent); 
}
  
  /* ---------- layout shell ---------- */
  .layout {
    height: 100vh;
    height: 100dvh; /* mobile viewport fix */
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  
    .body {
    flex: 1 1 auto;
    overflow-y: auto;
	overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }
  
  a { color: inherit; }
  
