/* ============================================================
   AMICAB TRAVELS — UNIFIED DESIGN SYSTEM v4
   Primary: #0d2818  Accent: #2ecc71  Gold: #f0a500
   Type: Inter (UI) + Playfair Display (headings)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;1,400&display=swap');

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { font-size:15px; -webkit-font-smoothing:antialiased; }
body { font-family:'Inter', sans-serif; color:#1a1a2e; background:#f8fdf9; min-height:100vh; }
a { text-decoration:none; color:inherit; }
img { display:block; max-width:100%; }
button { font-family:'Inter', sans-serif; cursor:pointer; }
input, textarea, select { font-family:'Inter', sans-serif; }

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  --green-deep:   #0d2818;
  --green-mid:    #1a5c38;
  --green-bright: #2ecc71;
  --green-light:  #e8f5ec;
  --green-pale:   #f8fdf9;
  --gold:         #f0a500;
  --gold-light:   #fff8e7;
  --ink:          #1a1a2e;
  --ink2:         #3a3a5e;
  --muted:        #6e7a8a;
  --rule:         #dde8e2;
  --white:        #ffffff;
  --red:          #e53e3e;
  --red-light:    #fff5f5;
  --radius:       12px;
  --radius-sm:    8px;
  --radius-lg:    20px;
  --shadow-sm:    0 1px 3px rgba(13,40,24,.08), 0 1px 2px rgba(13,40,24,.06);
  --shadow:       0 4px 16px rgba(13,40,24,.10), 0 2px 4px rgba(13,40,24,.06);
  --shadow-lg:    0 8px 32px rgba(13,40,24,.14), 0 4px 8px rgba(13,40,24,.08);
  --sidebar-w:    220px;
}

/* ============================================================
   AUTH PAGES — signin, signup, admin login
   ============================================================ */

.auth-page {
  min-height: 100vh;
  height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* Left brand panel */
.auth-brand {
  background: var(--green-deep);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 56px;
  min-height: 100vh;
  gap: 40px;
}

.auth-brand::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(46,204,113,.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(240,165,0,.10) 0%, transparent 50%);
  pointer-events: none;
  animation: brandPulse 8s ease-in-out infinite alternate;
}

@keyframes brandPulse {
  0%   { opacity:.6; }
  100% { opacity:1; }
}

.auth-brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.auth-brand-logo img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(46,204,113,.4);
}

.auth-brand-logo span {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.7);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.auth-brand-body {
  position: relative;
  z-index: 1;
}

.auth-brand-body h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -.02em;
}

.auth-brand-body h1 em {
  font-style: italic;
  color: var(--green-bright);
}

.auth-brand-body p {
  font-size: 15px;
  color: rgba(255,255,255,.55);
  line-height: 1.7;
  max-width: 340px;
}

.auth-brand-footer {
  position: relative;
  z-index: 1;
  margin-top: auto;
}

.auth-brand-footer p {
  font-size: 12px;
  color: rgba(255,255,255,.70);
}

.auth-brand-notice {
  margin-top: 28px;
  background: rgba(46,204,113,.12);
  border: 1px solid rgba(46,204,113,.25);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 13px;
  color: rgba(255,255,255,.65);
  line-height: 1.6;
}

.auth-brand-notice i {
  color: var(--green-bright);
  margin-right: 6px;
}

/* Right form panel */
.auth-form-panel {
  background: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  padding: 0 72px;
  overflow-y: auto;
  min-height: 100vh;
}

.auth-form-panel h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: -.01em;
}

.auth-form-panel .auth-subtitle {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 36px;
}

.auth-field {
  margin-bottom: 18px;
}

.auth-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink2);
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 7px;
}

.auth-input-wrap {
  position: relative;
}

.auth-input-wrap i.field-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 14px;
  pointer-events: none;
}

.auth-input-wrap input {
  width: 100%;
  height: 48px;
  padding: 0 44px 0 42px;
  border: 1.5px solid var(--rule);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--ink);
  background: var(--white);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}

.auth-input-wrap input:focus {
  border-color: var(--green-bright);
  box-shadow: 0 0 0 3px rgba(46,204,113,.12);
}

.auth-input-wrap .toggle-pw {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  padding: 4px;
}

.auth-btn {
  width: 100%;
  height: 50px;
  background: var(--green-deep);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .03em;
  margin-top: 8px;
  transition: background .15s, transform .1s, box-shadow .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.auth-btn:hover  { background: var(--green-mid); box-shadow: var(--shadow); }
.auth-btn:active { transform: scale(.98); }
.auth-btn:disabled { opacity:.6; cursor:not-allowed; }

.auth-link {
  text-align: center;
  margin-top: 24px;
  font-size: 13px;
  color: var(--muted);
}

.auth-link a {
  color: var(--green-mid);
  font-weight: 600;
}

.auth-flash-error {
  background: var(--red-light);
  border: 1px solid #fed7d7;
  border-left: 3px solid var(--red);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 13px;
  color: #c53030;
  margin-bottom: 20px;
}

.auth-flash-success {
  background: var(--green-light);
  border: 1px solid #c6f6d5;
  border-left: 3px solid var(--green-bright);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 13px;
  color: var(--green-mid);
  margin-bottom: 20px;
}

.loader-spin {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 768px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-form-panel { padding: 40px 28px; }
}

/* ============================================================
   USER HOME — booking page
   ============================================================ */

.user-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

/* Sidebar */
.user-sidebar {
  background: var(--green-deep);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.sidebar-brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(46,204,113,.3);
}

.sidebar-brand-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.sidebar-brand-tagline {
  font-size: 11px;
  color: rgba(255,255,255,.35);
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* Profile card in sidebar */
.sidebar-profile {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 20px;
}

.sidebar-profile-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--green-deep);
  margin-bottom: 14px;
  flex-shrink: 0;
}

.sidebar-profile-name {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.sidebar-profile-detail {
  font-size: 12px;
  color: rgba(255,255,255,.45);
  line-height: 1.8;
}

.sidebar-profile-detail span {
  display: block;
}

/* Change password section */
.sidebar-section-title {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,.25);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 10px;
}

.sidebar-pw-form input {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.07);
  color: #fff;
  font-size: 13px;
  margin-bottom: 8px;
  outline: none;
  transition: border-color .15s;
}

.sidebar-pw-form input::placeholder { color: rgba(255,255,255,.3); }
.sidebar-pw-form input:focus { border-color: var(--green-bright); }

.sidebar-pw-btn {
  width: 100%;
  height: 36px;
  background: rgba(46,204,113,.15);
  border: 1px solid rgba(46,204,113,.3);
  border-radius: var(--radius-sm);
  color: var(--green-bright);
  font-size: 13px;
  font-weight: 600;
  transition: background .15s;
}

.sidebar-pw-btn:hover { background: rgba(46,204,113,.25); }

/* Sidebar nav links */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: auto;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: rgba(255,255,255,.55);
  font-weight: 500;
  transition: all .15s;
}

.sidebar-nav a:hover {
  background: rgba(255,255,255,.07);
  color: #fff;
}

.sidebar-nav a i { width: 18px; text-align: center; font-size: 15px; }

.sidebar-flash {
  background: rgba(46,204,113,.12);
  border: 1px solid rgba(46,204,113,.25);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 12px;
  color: rgba(255,255,255,.7);
  line-height: 1.5;
}

.sidebar-flash.error {
  background: rgba(229,62,62,.12);
  border-color: rgba(229,62,62,.25);
  color: #fc8181;
}

/* Main booking area */
.user-main {
  padding: 40px 48px;
  overflow-y: auto;
}

.user-main-header {
  margin-bottom: 36px;
}

.user-main-header h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.02em;
  margin-bottom: 6px;
}

.user-main-header p {
  font-size: 14px;
  color: var(--muted);
}

/* Booking card */
.booking-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 36px;
  max-width: 600px;
  margin-bottom: 36px;
}

.booking-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.booking-card-title i {
  width: 32px;
  height: 32px;
  background: var(--green-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-mid);
  font-size: 14px;
}

.booking-field {
  margin-bottom: 18px;
}

.booking-field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink2);
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-bottom: 7px;
}

.booking-input-wrap {
  position: relative;
}

.booking-input-wrap i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 14px;
  pointer-events: none;
}

.booking-input-wrap input {
  width: 100%;
  height: 48px;
  padding: 0 16px 0 42px;
  border: 1.5px solid var(--rule);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--ink);
  background: var(--white);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}

.booking-input-wrap input:focus {
  border-color: var(--green-bright);
  box-shadow: 0 0 0 3px rgba(46,204,113,.12);
}

.booking-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.booking-btn {
  width: 100%;
  height: 52px;
  background: var(--green-deep);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;
  margin-top: 8px;
  transition: background .15s, box-shadow .15s, transform .1s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.booking-btn:hover  { background: var(--green-mid); box-shadow: var(--shadow); }
.booking-btn:active { transform: scale(.99); }
.booking-btn:disabled { opacity:.6; cursor:not-allowed; }

/* Booking toast */
.booking-toast {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  min-width: 280px;
  max-width: 380px;
  padding: 16px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateX(20px);
  transition: all .25s ease;
  pointer-events: none;
}

.booking-toast.show { opacity:1; transform:translateX(0); pointer-events:auto; }
.booking-toast.success { background: var(--green-deep); color: #fff; }
.booking-toast.error { background: var(--red); color: #fff; }
.booking-toast i { font-size: 18px; flex-shrink: 0; }

/* Recent reservations */
.recent-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.recent-title a {
  font-size: 13px;
  font-weight: 500;
  color: var(--green-mid);
}

.recent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  max-width: 860px;
}

.recent-card {
  background: var(--white);
  border: 1.5px solid var(--rule);
  border-radius: var(--radius);
  padding: 18px 20px;
  position: relative;
  transition: border-color .15s, box-shadow .15s;
}

.recent-card:hover { border-color: var(--green-bright); box-shadow: var(--shadow-sm); }

.recent-card-status {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 20px;
}

.status-pending   { background: #fff8e7; color: #b45309; }
.status-approved  { background: var(--green-light); color: var(--green-mid); }
.status-declined  { background: var(--red-light); color: #c53030; }
.status-cancelled { background: #f7f7f7; color: #718096; }

.recent-card-date {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.recent-card-route {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
}

.recent-card-route i { color: var(--green-bright); width: 14px; }

.recent-card-reuse {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  display: flex;
  gap: 8px;
}

.btn-reuse {
  flex: 1;
  height: 32px;
  background: var(--green-light);
  border: 1px solid rgba(46,204,113,.3);
  border-radius: 6px;
  color: var(--green-mid);
  font-size: 12px;
  font-weight: 600;
  transition: background .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-reuse:hover { background: rgba(46,204,113,.2); }

/* Feedback toggle button */
.feedback-toggle-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--gold-light);
  border: 1.5px solid rgba(240,165,0,.25);
  border-radius: var(--radius);
  color: #92660a;
  font-size: 14px;
  font-weight: 600;
  max-width: 600px;
  width: 100%;
  margin-bottom: 24px;
  transition: background .15s, border-color .15s;
}

.feedback-toggle-btn:hover { background: #fef3c7; border-color: rgba(240,165,0,.4); }
.feedback-toggle-btn i { font-size: 18px; color: var(--gold); }

/* Feedback form card */
.feedback-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 32px 36px;
  max-width: 600px;
  margin-bottom: 36px;
  display: none;
}

.feedback-card.open { display: block; animation: fadeUp .2s ease; }

@keyframes fadeUp {
  from { opacity:0; transform:translateY(8px); }
  to   { opacity:1; transform:translateY(0); }
}

.feedback-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 20px;
}

.star-row {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.star-row span {
  font-size: 36px;
  color: #d4d4d4;
  cursor: pointer;
  transition: color .1s, transform .1s;
  line-height: 1;
}

.star-row span:hover,
.star-row span.lit { color: var(--gold); transform: scale(1.1); }

.feedback-textarea {
  width: 100%;
  border: 1.5px solid var(--rule);
  border-radius: var(--radius-sm);
  padding: 14px;
  font-size: 14px;
  resize: vertical;
  min-height: 100px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  color: var(--ink);
}

.feedback-textarea:focus {
  border-color: var(--green-bright);
  box-shadow: 0 0 0 3px rgba(46,204,113,.12);
}

.feedback-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.btn-feedback-submit {
  height: 42px;
  padding: 0 24px;
  background: var(--green-deep);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: background .15s;
}

.btn-feedback-submit:hover { background: var(--green-mid); }

.btn-feedback-cancel {
  height: 42px;
  padding: 0 20px;
  background: transparent;
  color: var(--muted);
  border: 1.5px solid var(--rule);
  border-radius: var(--radius-sm);
  font-size: 14px;
  transition: border-color .15s;
}

.btn-feedback-cancel:hover { border-color: var(--ink2); color: var(--ink); }

.feedback-msg {
  margin-top: 12px;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  display: none;
}

.feedback-msg.success { background: var(--green-light); color: var(--green-mid); display:block; }
.feedback-msg.error   { background: var(--red-light); color: #c53030; display:block; }

@media (max-width: 900px) {
  .user-layout { grid-template-columns: 1fr; }
  .user-sidebar { height: auto; position: static; flex-direction: row; flex-wrap: wrap; padding: 20px; }
  .user-main { padding: 24px 20px; }
  .booking-row { grid-template-columns: 1fr; }
}

/* ============================================================
   RESERVATION LIST PAGE
   ============================================================ */

.reslist-layout {
  min-height: 100vh;
  background: var(--green-pale);
}

.reslist-header {
  background: var(--green-deep);
  padding: 24px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.reslist-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.reslist-header img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(46,204,113,.3);
}

.reslist-header h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  color: #fff;
  font-weight: 700;
}

.reslist-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-back-home {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  transition: background .15s;
}

.btn-back-home:hover { background: rgba(255,255,255,.18); }

.reslist-body {
  padding: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.reslist-empty {
  text-align: center;
  padding: 80px 40px;
  color: var(--muted);
}

.reslist-empty i { font-size: 48px; color: var(--rule); margin-bottom: 16px; display: block; }
.reslist-empty p { font-size: 15px; margin-bottom: 20px; }

.res-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px 28px;
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: start;
  border-left: 4px solid var(--rule);
  transition: box-shadow .15s;
}

.res-card:hover { box-shadow: var(--shadow); }
.res-card.approved  { border-left-color: var(--green-bright); }
.res-card.pending   { border-left-color: var(--gold); }
.res-card.declined  { border-left-color: var(--red); }
.res-card.cancelled { border-left-color: #cbd5e0; }

.res-card-main {}

.res-card-datetime {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.res-card-route {
  font-size: 13px;
  color: var(--muted);
  line-height: 2;
}

.res-card-route i { color: var(--green-bright); width: 16px; }

.res-card-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }

.res-status-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
}

.btn-cancel {
  height: 34px;
  padding: 0 16px;
  background: var(--red-light);
  border: 1px solid #fed7d7;
  border-radius: 6px;
  color: #c53030;
  font-size: 12px;
  font-weight: 600;
  transition: background .15s;
  white-space: nowrap;
}

.btn-cancel:hover { background: #fed7d7; }

/* ============================================================
   ADMIN LAYOUT — sidebar + main
   ============================================================ */

.admin-layout {
  display: block;
  min-height: 100vh;
}

.admin-sidebar {
  background: var(--green-deep);
  position: fixed;
  left: 0;
  top: 0;
  width: var(--sidebar-w);
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  z-index: 100;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.1) transparent;
}

.admin-sidebar-top {
  padding: 28px 20px 20px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.admin-sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.admin-sidebar-logo img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(46,204,113,.3);
  flex-shrink: 0;
}

.admin-sidebar-brand {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.admin-sidebar-brand span {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: rgba(255,255,255,.50);
  text-transform: uppercase;
  letter-spacing: .1em;
}

.admin-sidebar-nav {
  padding: 16px 12px;
  flex: 1;
}

.admin-nav-section {
  margin-bottom: 8px;
}

.admin-nav-label {
  font-size: 9px;
  font-weight: 600;
  color: rgba(255,255,255,.22);
  text-transform: uppercase;
  letter-spacing: .14em;
  padding: 10px 10px 4px;
  display: block;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.80);
  transition: all .12s;
  white-space: nowrap;
  margin-bottom: 2px;
}

.admin-nav-link:hover {
  background: rgba(255,255,255,.10);
  color: #fff;
}

.admin-nav-link.active {
  background: rgba(46,204,113,.15);
  color: var(--green-bright);
}

.admin-nav-link i {
  width: 20px;
  text-align: center;
  font-size: 15px;
  flex-shrink: 0;
}

.admin-nav-link .badge {
  margin-left: auto;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

.admin-sidebar-footer {
  padding: 16px 12px;
  border-top: 1px solid rgba(255,255,255,.06);
}

.admin-sidebar-footer a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: rgba(255,255,255,.70);
  transition: all .12s;
}

.admin-sidebar-footer a:hover {
  background: rgba(229,62,62,.1);
  color: #fc8181;
}

.admin-sidebar-footer a i { width: 20px; text-align: center; }

/* Admin main content area */
.admin-main {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  background: #f2f6f4;
  width: calc(100% - var(--sidebar-w));
  box-sizing: border-box;
}

.admin-topbar {
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
  gap: 16px;
  flex-wrap: nowrap;
  min-height: 56px;
}

.admin-topbar-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.admin-content {
  padding: 32px;
}

/* Admin stat cards */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.admin-stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 3px solid transparent;
}

.admin-stat-card.green  { border-top-color: var(--green-bright); }
.admin-stat-card.gold   { border-top-color: var(--gold); }
.admin-stat-card.red    { border-top-color: var(--red); }
.admin-stat-card.blue   { border-top-color: #4299e1; }

.admin-stat-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.admin-stat-value {
  font-size: 30px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}

.admin-stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  align-self: flex-end;
  margin-top: -4px;
}

.icon-green { background: var(--green-light); color: var(--green-mid); }
.icon-gold  { background: var(--gold-light); color: #92660a; }
.icon-red   { background: var(--red-light); color: #c53030; }
.icon-blue  { background: #ebf8ff; color: #2b6cb0; }

/* Admin content cards */
.admin-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.admin-card-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-card-title i { color: var(--green-mid); }

/* Admin tables */
.admin-table-wrap { overflow-x: auto; }

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  background: #f8faf9;
  border-bottom: 1px solid var(--rule);
  white-space: nowrap;
}

.admin-table td {
  padding: 13px 16px;
  border-bottom: 1px solid #f0f4f2;
  color: var(--ink2);
  vertical-align: middle;
}

.admin-table tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover td { background: #f8fdf9; }

/* Admin form controls */
.admin-search-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--rule);
  background: #f8faf9;
}

.admin-select, .admin-input, .admin-date-input {
  height: 38px;
  padding: 0 12px;
  border: 1.5px solid var(--rule);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--ink);
  background: var(--white);
  outline: none;
  transition: border-color .15s;
}

.admin-select:focus, .admin-input:focus, .admin-date-input:focus {
  border-color: var(--green-bright);
}

.btn-admin-search {
  height: 38px;
  padding: 0 18px;
  background: var(--green-deep);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  transition: background .15s;
}

.btn-admin-search:hover { background: var(--green-mid); }

.btn-admin-outline {
  height: 38px;
  padding: 0 16px;
  background: transparent;
  color: var(--green-mid);
  border: 1.5px solid rgba(46,204,113,.4);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  transition: all .15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-admin-outline:hover { background: var(--green-light); }

.btn-admin-danger {
  height: 34px;
  padding: 0 14px;
  background: var(--red-light);
  border: 1px solid #fed7d7;
  border-radius: 6px;
  color: #c53030;
  font-size: 12px;
  font-weight: 600;
  transition: background .15s;
}

.btn-admin-danger:hover { background: #fed7d7; }

/* Pagination */
.admin-pagination {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 16px 24px;
  border-top: 1px solid var(--rule);
  flex-wrap: wrap;
}

.admin-pagination a, .admin-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  font-size: 13px;
  color: var(--ink2);
  transition: all .12s;
  text-decoration: none;
}

.admin-pagination a:hover { background: var(--green-light); border-color: var(--green-bright); color: var(--green-mid); }
.admin-pagination .pg-active { background: var(--green-deep); color: #fff; border-color: var(--green-deep); font-weight: 700; }
.admin-pagination .pg-disabled { opacity:.35; pointer-events:none; }
.admin-pagination .pg-info { width: auto; padding: 0 12px; background: none; border: none; font-size: 12px; color: var(--muted); }

/* Status badges admin */
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.badge-pending   { background: #fff8e7; color: #b45309; }
.badge-approved  { background: var(--green-light); color: var(--green-mid); }
.badge-declined  { background: var(--red-light); color: #c53030; }
.badge-cancelled { background: #f7f7f7; color: #718096; }

/* Flash messages */
.flash-bar {
  padding: 12px 24px;
  font-size: 13px;
  font-weight: 500;
  border-bottom: 1px solid transparent;
}

.flash-bar.success { background: var(--green-light); color: var(--green-mid); border-color: #c6f6d5; }
.flash-bar.error   { background: var(--red-light); color: #c53030; border-color: #fed7d7; }

/* ============================================================
   ADMIN LOGIN page (standalone)
   ============================================================ */

.admin-login-page {
  min-height: 100vh;
  background: var(--green-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.admin-login-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 15% 90%, rgba(46,204,113,.15) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 85% 10%, rgba(240,165,0,.08) 0%, transparent 50%);
  pointer-events: none;
}

.admin-login-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 48px;
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 1;
}

.admin-login-logo {
  text-align: center;
  margin-bottom: 28px;
}

.admin-login-logo img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--green-light);
  margin: 0 auto 14px;
}

.admin-login-logo h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 4px;
}

.admin-login-logo p {
  font-size: 13px;
  color: var(--muted);
}

/* ============================================================
   UTILITIES
   ============================================================ */

.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.text-muted { color: var(--muted); }
.text-sm { font-size: 13px; }

