:root {
  --vjn-primary: #0f6e51;
  --vjn-primary-dark: #0b5240;
  --vjn-primary-light: #e6f2ee;
  --vjn-accent: #f2a900;
  --vjn-sidebar-bg: #0b2b22;
  --vjn-sidebar-hover: #123c30;
  --vjn-text: #1f2937;
  --vjn-muted: #6b7280;
  --vjn-border: #e5e7eb;
  --vjn-bg: #f4f6f8;
  --vjn-danger: #dc2626;
  --vjn-warning: #d97706;
  --vjn-success: #16a34a;
  --vjn-info: #0284c7;
}

body {
  background-color: var(--vjn-bg);
  color: var(--vjn-text);
  font-family: "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.9375rem;
}

a { color: var(--vjn-primary); }
a:hover { color: var(--vjn-primary-dark); }

/* ---------- App shell ---------- */
.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--vjn-sidebar-bg);
  color: #dbe7e2;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; bottom: 0; left: 0;
  z-index: 1030;
  transition: transform 0.2s ease;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-brand .brand-mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--vjn-accent);
  color: #1a1a1a;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.sidebar-brand .brand-text { line-height: 1.15; }
.sidebar-brand .brand-text strong { display: block; color: #fff; font-size: 0.95rem; }
.sidebar-brand .brand-text span { font-size: 0.72rem; color: #9fb8ac; }

.sidebar-nav { flex: 1; overflow-y: auto; padding: 0.75rem 0.6rem; }
.sidebar-section-label {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: #6f9686; padding: 0.9rem 0.75rem 0.3rem;
}
.sidebar-nav .nav-link {
  color: #cfe1da;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.875rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.sidebar-nav .nav-link i { width: 18px; text-align: center; opacity: 0.85; }
.sidebar-nav .nav-link:hover { background: var(--vjn-sidebar-hover); color: #fff; }
.sidebar-nav .nav-link.active { background: var(--vjn-primary); color: #fff; }

.sidebar-footer { padding: 0.85rem 1.1rem; border-top: 1px solid rgba(255,255,255,0.08); font-size: 0.75rem; color: #7fa294; }

.main-wrap { margin-left: 260px; flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  background: #fff;
  border-bottom: 1px solid var(--vjn-border);
  padding: 0.65rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 1020;
}

.content-area { padding: 1.5rem; flex: 1; }

.sidebar-toggle-btn { display: none; }

@media (max-width: 991.98px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-wrap { margin-left: 0; }
  .sidebar-toggle-btn { display: inline-flex; }
}

/* ---------- Cards ---------- */
.stat-card {
  background: #fff;
  border: 1px solid var(--vjn-border);
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}
.stat-card .stat-value { font-size: 1.6rem; font-weight: 700; color: var(--vjn-text); }
.stat-card .stat-label { font-size: 0.8rem; color: var(--vjn-muted); }
.stat-card .stat-icon {
  width: 42px; height: 42px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--vjn-primary-light); color: var(--vjn-primary); font-size: 1.05rem;
}

.card { border: 1px solid var(--vjn-border); border-radius: 14px; box-shadow: 0 1px 2px rgba(16,24,40,0.04); }
.card-header { background: #fff; border-bottom: 1px solid var(--vjn-border); font-weight: 600; }

.btn-primary { background: var(--vjn-primary); border-color: var(--vjn-primary); }
.btn-primary:hover { background: var(--vjn-primary-dark); border-color: var(--vjn-primary-dark); }
.btn-outline-primary { color: var(--vjn-primary); border-color: var(--vjn-primary); }
.btn-outline-primary:hover { background: var(--vjn-primary); border-color: var(--vjn-primary); }

.table thead th {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--vjn-muted); border-bottom-width: 1px; font-weight: 600;
}
.table td { vertical-align: middle; font-size: 0.875rem; }

.badge-status { font-weight: 600; font-size: 0.72rem; padding: 0.35em 0.65em; }

.empty-state { text-align: center; padding: 3rem 1rem; color: var(--vjn-muted); }
.empty-state i { font-size: 2rem; margin-bottom: 0.75rem; color: var(--vjn-border); }

/* ---------- Guest (auth) pages ---------- */
.guest-wrap {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--vjn-primary-dark), var(--vjn-primary) 60%, #0f8a63);
  padding: 1.5rem;
}
.guest-card {
  width: 100%; max-width: 420px;
  background: #fff; border-radius: 16px;
  padding: 2rem 2rem 1.75rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.guest-brand { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1.5rem; }
.guest-brand .brand-mark {
  width: 44px; height: 44px; border-radius: 12px; background: var(--vjn-accent);
  display: flex; align-items: center; justify-content: center; font-weight: 700; color: #1a1a1a;
}
.guest-brand strong { display: block; font-size: 1.05rem; }
.guest-brand span { font-size: 0.78rem; color: var(--vjn-muted); }

.form-label { font-size: 0.85rem; font-weight: 500; }
.invalid-feedback { display: block; }

.password-reveal-box {
  background: #fffbeb; border: 1px solid #fcd34d; border-radius: 10px;
  padding: 0.85rem 1rem; font-family: "Courier New", monospace; font-size: 0.95rem;
}
