/* BVMA Staff Portal - Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --red: #C8102E;
  --red-dark: #8B0A1F;
  --red-glow: rgba(200,16,46,0.15);
  --gold: #D4AF37;
  --gold-light: #F2D060;
  --gold-dim: rgba(212,175,55,0.12);
  --black: #0D0D0D;
  --gray-900: #111;
  --gray-800: #1A1A1A;
  --gray-700: #222;
  --gray-600: #333;
  --gray-500: #444;
  --gray-400: #666;
  --gray-300: #999;
  --gray-200: #BBB;
  --white: #F5F4F0;
  --green: #27AE60;
  --green-dim: rgba(39,174,96,0.15);
  --orange: #E67E22;
  --orange-dim: rgba(230,126,34,0.15);
  --blue: #2980B9;
  --blue-dim: rgba(41,128,185,0.15);
  --purple: #8E44AD;
  --purple-dim: rgba(142,68,173,0.15);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--black);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── LAYOUT ── */
.portal-layout { display: flex; min-height: 100vh; }

.sidebar {
  width: 230px;
  background: var(--gray-900);
  border-right: 1px solid var(--gray-700);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 50;
  overflow-y: auto;
}

.sidebar-logo {
  padding: 20px 16px;
  border-bottom: 1px solid var(--gray-700);
  display: flex;
  align-items: center;
  gap: 12px;
}
.sidebar-hexagon {
  width: 44px; height: 44px;
  background: var(--red);
  clip-path: polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px; color: var(--gold);
  flex-shrink: 0;
}
.sidebar-logo-text h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px; letter-spacing: 2px; color: var(--gold); line-height: 1;
}
.sidebar-logo-text p { font-size: 10px; color: var(--gray-300); letter-spacing: 1px; text-transform: uppercase; }

.sidebar-user {
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-700);
  display: flex; align-items: center; gap: 10px;
}
.user-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 14px; color: var(--white);
  flex-shrink: 0;
}
.user-avatar.admin-avatar { background: var(--gold); color: var(--black); }
.user-info .name { font-size: 13px; font-weight: 600; color: var(--white); }
.user-info .role { font-size: 11px; color: var(--gray-300); text-transform: uppercase; letter-spacing: 1px; }

.sidebar-nav { padding: 12px 0; flex: 1; }
.nav-section-label {
  padding: 8px 16px 4px;
  font-size: 10px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--gray-400);
}
.nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  color: var(--gray-200);
  font-size: 13px; font-weight: 500;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: all 0.2s;
  text-decoration: none;
}
.nav-link:hover { background: var(--gray-800); color: var(--white); text-decoration: none; }
.nav-link.active { background: var(--gray-800); color: var(--gold); border-left-color: var(--gold); }
.nav-link .nav-icon { font-size: 15px; width: 20px; text-align: center; }
.nav-badge {
  margin-left: auto;
  background: var(--red);
  color: white;
  font-size: 10px; font-weight: 700;
  padding: 1px 6px; border-radius: 10px;
}

.sidebar-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--gray-700);
}
.sidebar-footer a {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--gray-400);
  text-decoration: none;
}
.sidebar-footer a:hover { color: var(--red); }

/* ── MAIN CONTENT ── */
.main-content {
  margin-left: 230px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.top-bar {
  background: var(--gray-900);
  border-bottom: 1px solid var(--gray-700);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky; top: 0; z-index: 40;
}
.top-bar-title { font-family: 'Bebas Neue', sans-serif; font-size: 22px; letter-spacing: 2px; color: var(--gold); }
.top-bar-right { display: flex; align-items: center; gap: 16px; }
.top-bar-date { font-size: 12px; color: var(--gray-300); }

.page-body { padding: 28px; }

/* ── CARDS ── */
.card {
  background: var(--gray-800);
  border: 1px solid var(--gray-700);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}
.card-header {
  background: var(--gray-700);
  padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--gray-600);
}
.card-header h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 17px; letter-spacing: 1.5px; color: var(--gold);
  display: flex; align-items: center; gap: 8px;
}
.card-body { padding: 20px; }

/* ── GRID ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ── STAT CARDS ── */
.stat-card {
  background: var(--gray-800);
  border: 1px solid var(--gray-700);
  border-radius: 10px;
  padding: 20px;
}
.stat-card .stat-label { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gray-400); margin-bottom: 8px; }
.stat-card .stat-val { font-family: 'Bebas Neue', sans-serif; font-size: 42px; color: var(--gold); line-height: 1; }
.stat-card .stat-sub { font-size: 11px; color: var(--gray-400); margin-top: 4px; }
.stat-card.red-stat { border-color: var(--red); }
.stat-card.green-stat { border-color: var(--green); }
.stat-card.gold-stat { border-top: 2px solid var(--gold); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 20px;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 13px; font-weight: 600;
  cursor: pointer; border: none;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-primary { background: var(--red); color: white; }
.btn-primary:hover { background: var(--red-dark); color: white; text-decoration: none; }
.btn-gold { background: var(--gold); color: var(--black); }
.btn-gold:hover { background: var(--gold-light); color: var(--black); text-decoration: none; }
.btn-outline { background: transparent; border: 1.5px solid var(--gray-600); color: var(--gray-200); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); text-decoration: none; }
.btn-green { background: var(--green); color: white; }
.btn-green:hover { background: #219150; color: white; text-decoration: none; }
.btn-danger { background: transparent; border: 1.5px solid var(--red); color: var(--red); }
.btn-danger:hover { background: var(--red); color: white; text-decoration: none; }
.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-lg { padding: 14px 32px; font-size: 15px; font-weight: 700; letter-spacing: 1px; }
.btn-block { display: flex; width: 100%; justify-content: center; }

/* ── FORMS ── */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--gray-300);
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  background: var(--gray-700);
  border: 1px solid var(--gray-600);
  border-radius: 6px;
  color: var(--white);
  padding: 10px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border 0.2s;
}
.form-control:focus { border-color: var(--gold); }
.form-control::placeholder { color: var(--gray-400); }
textarea.form-control { resize: vertical; line-height: 1.6; }
select.form-control { cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* ── TABLES ── */
.table-wrap { overflow-x: auto; }
table.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  text-align: left; padding: 10px 14px;
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--gray-400);
  border-bottom: 1px solid var(--gray-700);
  white-space: nowrap;
}
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--gray-700);
  font-size: 13px; color: var(--gray-200);
  vertical-align: middle;
}
.data-table tr:hover td { background: rgba(255,255,255,0.02); }
.data-table tr:last-child td { border-bottom: none; }

/* ── BADGES / TAGS ── */
.tag {
  display: inline-block; padding: 3px 10px;
  border-radius: 20px; font-size: 11px; font-weight: 700;
  letter-spacing: 0.5px; text-transform: uppercase;
}
.tag-green { background: var(--green-dim); color: var(--green); }
.tag-red { background: var(--red-glow); color: var(--red); }
.tag-gold { background: var(--gold-dim); color: var(--gold); }
.tag-orange { background: var(--orange-dim); color: var(--orange); }
.tag-blue { background: var(--blue-dim); color: var(--blue); }
.tag-purple { background: var(--purple-dim); color: var(--purple); }
.tag-gray { background: var(--gray-700); color: var(--gray-300); }

/* ── FSP SCORE ── */
.fsp-score {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  font-family: 'Bebas Neue', sans-serif; font-size: 16px; font-weight: 700;
}
.fsp-low { background: var(--red-glow); color: var(--red); border: 1.5px solid var(--red); }
.fsp-mid { background: var(--orange-dim); color: var(--orange); border: 1.5px solid var(--orange); }
.fsp-high { background: var(--gold-dim); color: var(--gold); border: 1.5px solid var(--gold); }
.fsp-elite { background: var(--gold); color: var(--black); border: 1.5px solid var(--gold); }

/* ── CHECKLIST ── */
.checklist-section { margin-bottom: 20px; }
.checklist-section h4 {
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--gray-700);
}
.checklist-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 6px;
  margin-bottom: 6px;
  background: var(--gray-700);
  transition: background 0.2s;
  cursor: pointer;
}
.checklist-item:hover { background: var(--gray-600); }
.checklist-item.done { background: rgba(39,174,96,0.1); }
.checklist-item.done .task-label { color: var(--gray-400); text-decoration: line-through; }
.checklist-item input[type=checkbox] { accent-color: var(--green); width: 16px; height: 16px; cursor: pointer; flex-shrink: 0; }
.task-label { font-size: 13px; flex: 1; }

/* ── CLOCK CARD ── */
.clock-card {
  background: linear-gradient(135deg, #1a0008 0%, var(--gray-800) 100%);
  border: 2px solid var(--gold);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  margin-bottom: 20px;
}
.clock-time {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 56px; color: var(--gold); line-height: 1;
  letter-spacing: 3px;
}
.clock-date { font-size: 13px; color: var(--gray-300); margin-bottom: 16px; }
.clock-status { margin-bottom: 20px; }
.clock-status .status-row { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }
.clock-status .status-item { text-align: center; }
.clock-status .status-item .s-label { font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--gray-400); }
.clock-status .status-item .s-val { font-size: 16px; font-weight: 700; color: var(--white); margin-top: 2px; }

/* ── SCHEDULE ── */
.schedule-row {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-700);
}
.schedule-row:last-child { border-bottom: none; }
.schedule-time { font-family: 'Bebas Neue', sans-serif; font-size: 18px; color: var(--gold); width: 60px; flex-shrink: 0; }
.schedule-activity { font-size: 14px; font-weight: 500; }
.schedule-loc { font-size: 12px; color: var(--gray-400); }
.schedule-row.current { background: var(--red-glow); border-radius: 6px; padding: 10px 12px; margin: 0 -12px; }

/* ── ANNOUNCEMENT ── */
.announcement {
  background: var(--gray-700);
  border-left: 4px solid var(--gold);
  border-radius: 0 8px 8px 0;
  padding: 14px 16px;
  margin-bottom: 10px;
}
.announcement.urgent { border-left-color: var(--red); }
.announcement.info { border-left-color: var(--blue); }
.announcement h4 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.announcement p { font-size: 13px; color: var(--gray-200); }
.announcement .ann-meta { font-size: 11px; color: var(--gray-400); margin-top: 6px; }

/* ── ENERGY STARS ── */
.energy-pick { display: flex; gap: 8px; justify-content: center; margin: 12px 0; }
.energy-pick label {
  width: 44px; height: 44px;
  border: 2px solid var(--gray-600);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; cursor: pointer;
  transition: all 0.2s;
}
.energy-pick input { display: none; }
.energy-pick input:checked + label { border-color: var(--gold); background: var(--gold-dim); transform: scale(1.1); }

/* ── FLASH MESSAGES ── */
.flash { padding: 12px 18px; border-radius: 6px; margin-bottom: 20px; font-size: 13px; font-weight: 500; }
.flash-success { background: var(--green-dim); color: var(--green); border: 1px solid var(--green); }
.flash-error { background: var(--red-glow); color: var(--red); border: 1px solid var(--red); }
.flash-info { background: var(--blue-dim); color: var(--blue); border: 1px solid var(--blue); }

/* ── PROGRESS BAR ── */
.progress-bar { background: var(--gray-700); border-radius: 10px; height: 8px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--gold); border-radius: 10px; transition: width 0.5s ease; }
.progress-fill.green { background: var(--green); }
.progress-fill.red { background: var(--red); }

/* ── STAR RATING ── */
.star-display { color: var(--gold); font-size: 16px; letter-spacing: 2px; }
.star-display.dim { color: var(--gray-600); }

/* ── UTILS ── */
.text-gold { color: var(--gold); }
.text-red { color: var(--red); }
.text-green { color: var(--green); }
.text-gray { color: var(--gray-300); }
.text-sm { font-size: 12px; }
.text-xs { font-size: 11px; }
.font-bold { font-weight: 700; }
.font-bebas { font-family: 'Bebas Neue', sans-serif; letter-spacing: 1px; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.flex { display: flex; } .items-center { align-items: center; } .gap-2 { gap: 8px; } .gap-3 { gap: 16px; }
.justify-between { justify-content: space-between; }
.text-center { text-align: center; }
.divider { border: none; border-top: 1px solid var(--gray-700); margin: 20px 0; }
.empty-state { text-align: center; padding: 40px; color: var(--gray-400); }
.empty-state .empty-icon { font-size: 40px; margin-bottom: 12px; }
.empty-state p { font-size: 13px; }

/* Mobile */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); transition: transform 0.3s; }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .page-body { padding: 16px; }
}
