/* ================= BASE RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Inter, sans-serif;
}

body {
  background: #ffffff;
  color: #111111;
}

/* ================= UTILITIES ================= */
.hidden {
  display: none !important;
}

/* ================= AUTH ================= */
.auth-container {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #eef2ff, #f8fafc);
}

.auth-box {
  width: 380px;
  background: rgb(247, 246, 246);
  padding: 35px;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(10, 10, 10, 0.08);
}

.logo-box {
  text-align: center;
  margin-bottom: 25px;
}

.logo-box h1 {
  font-size: 30px;
  margin-bottom: 8px;
}

.logo-box p {
  color: #030405;
  font-size: 14px;
}

/* ================= INPUTS ================= */
input,
textarea,
select {
  width: 100%;
  padding: 14px;
  margin-top: 10px;
  margin-bottom: 12px;
  border: 1px solid #e1e7ef;
  border-radius: 12px;
  outline: none;
  background: #ffffff;
  color: #111;
}

/* FIX: focus visibility */
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #111;
  outline-offset: 2px;
}

/* ================= BUTTONS ================= */
button {
  cursor: pointer;
  border: none;
  transition: 0.2s ease;
}

button:hover {
  transform: translateY(-1px);
}

.auth-box button,
.card button {
  padding: 14px;
  width: 100%;
  border-radius: 12px;
  background: #050505;
  color: #ffffff !important;
  font-weight: 600;
}

/* secondary button */
.secondary-btn {
  margin-top: 10px;
  background: #5e6267 !important;
  color: #000 !important;
}

/* ================= DASHBOARD LAYOUT ================= */
.dashboard {
  display: flex;
  height: 100vh;
}

/* ================= SIDEBAR ================= */
.sidebar {
  width: 260px;
  background: #0f172a;
  padding: 24px;
  color: #c3c1c1;
  display: flex;
  flex-direction: column;
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 35px;
}

.brand-icon {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: linear-gradient(135deg, #2563eb, #22c55e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
}

/* ================= MENU ================= */
.menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.menu button {
  padding: 14px;
  background: none;
  color: white;
  text-align: left;
  border-radius: 12px;
}

.menu button:hover {
  background: #1e293b;
  transform: translateX(3px);
}

/* ================= MAIN AREA ================= */
.main {
  flex: 1;
  padding: 35px;
  overflow: auto;
}

/* ================= TOPBAR ================= */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

/* FIX ADMIN TEXT OVERLAP ISSUE */
.profile-pill {
  background: white;
  padding: 12px 20px;
  border-radius: 999px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  color: #111;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

/* ================= STATS ================= */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: white;
  padding: 24px;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  transition: 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
}

.stat-card h2 {
  font-size: 32px;
  margin-bottom: 8px;
}

.stat-card p {
  color: #526988;
}

/* ================= CARDS ================= */
.card,
.record {
  background: white;
  padding: 22px;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  margin-bottom: 20px;
}

/* ================= RECORDS ================= */
.records {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.record-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.record small {
  display: block;
  margin-top: 10px;
  color: #6b7280;
}

/* ================= ACTION BUTTONS ================= */
.actions {
  display: flex;
  gap: 8px;
}

.edit-btn {
  background: #0b0b0b;
  padding: 10px 15px;
  border-radius: 10px;
  color: white;
}

.delete-btn {
  background: #050505;
  padding: 10px 15px;
  border-radius: 10px;
  color: white;
}

/* ================= TOOLBAR ================= */
.toolbar {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
}

.toolbar input,
.toolbar select {
  flex: 1;
  padding: 15px;
  border: none;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

/* ================= MODAL ================= */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-box {
  width: 400px;
  padding: 25px;
  background: #0f172a;
  border-radius: 24px;
  color: white;
}

/* modal inputs fix */
.modal-box input,
.modal-box textarea {
  background: #111827;
  border: 1px solid #374151;
  color: white;
}

/* ================= TOAST ================= */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #111827;
  padding: 15px 18px;
  color: white;
  border-radius: 10px;
  z-index: 9999;
  font-weight: 500;
}

/* ================= LABELS ================= */
.field-label {
  display: block;
  margin-top: 12px;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
}

/* ================= RECORD / BOOKING FIXES ================= */
#bookings .record {
  border-left: 4px solid #0c0b0b;
}

#bookings .record p {
  font-size: 14px;
}

/* ================= SMOOTH UX ================= */
.record:hover {
  transform: translateY(-2px);
  transition: 0.3s;
}

.nav-logo-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}
