/* final-css */
/* ═══════════════════════════════════════════ */
/* Inkjin Book & Pay — Unified Styles         */
/* Auth + Onboarding + Dashboard + Public      */
/* ═══════════════════════════════════════════ */

/* ═══ Base ═══ */
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: #fdf7ff;
  color: #1c1b21;
  min-height: 100vh;
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ═══ Form Elements ═══ */
.form-input {
  width: 100%;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  background-color: #F8F1FB;
  border: none;
  color: #1c1b21;
  transition: all 0.2s ease;
  outline: none;
}

.form-input::placeholder {
  color: rgba(122, 117, 131, 0.5);
}

.form-input:focus {
  background-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(49, 15, 122, 0.4);
}

/* ═══ Buttons ═══ */
.btn-primary {
  background: linear-gradient(135deg, #310f7a 0%, #482d91 100%);
  color: #ffffff;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(49, 15, 122, 0.2);
  transition: all 0.2s ease;
}

.btn-primary:hover { opacity: 0.9; }
.btn-primary:active { transform: scale(0.98); }

/* ═══ Auth Pages ═══ */
.glass-panel {
  background: rgba(253, 247, 255, 0.8);
  backdrop-filter: blur(20px);
}

.brand-gradient {
  background: linear-gradient(135deg, #310f7a 0%, #482d91 100%);
}

.bg-watermark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.03;
  pointer-events: none;
  user-select: none;
}

.bg-watermark span {
  font-size: 40rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: #310f7a;
}

/* ═══ Sidebar (Onboarding + Dashboard) ═══ */
.sidebar { width: 260px; min-height: 100vh; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none;
}

.nav-item:hover { background: rgba(255,255,255,0.1); }
.nav-item.active { background: #ffffff; color: #310f7a; font-weight: 600; }
.nav-item .material-symbols-outlined { font-size: 20px; }

/* ═══ Sub-menu ═══ */
.sub-menu { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.sub-menu.open { max-height: 200px; }
.sub-menu-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 48px; border-radius: 10px;
  font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,0.7);
  transition: all 0.2s; cursor: pointer; text-decoration: none;
}
.sub-menu-item:hover { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.95); }

/* ═══ Toggle Switch ═══ */
.toggle-switch {
  position: relative; width: 44px; height: 24px;
  background: #cac4d3; border-radius: 12px;
  cursor: pointer; transition: background 0.2s;
}
.toggle-switch.active { background: #310f7a; }
.toggle-switch::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 20px; height: 20px; background: white;
  border-radius: 50%; transition: transform 0.2s;
}
.toggle-switch.active::after { transform: translateX(20px); }

/* ═══ Status Pills ═══ */
.status-confirmed { background: #f0fdf4; color: #15803d; }
.status-confirmed .status-dot { background: #22c55e; }
.status-pending { background: #fffbeb; color: #b45309; }
.status-pending .status-dot { background: #f59e0b; }
.status-completed { background: #eff6ff; color: #1d4ed8; }
.status-completed .status-dot { background: #3b82f6; }
.status-cancelled { background: #fef2f2; color: #b91c1c; }
.status-cancelled .status-dot { background: #ef4444; }
.status-refunded { background: #eff6ff; color: #1d4ed8; }
.status-refunded .status-dot { background: #3b82f6; }

/* ═══ Tags ═══ */
.info-tag { background: #e8ddff; color: #310f7a; }

/* ═══ Modal ═══ */
.modal-backdrop {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.6); z-index: 200;
  align-items: center; justify-content: center;
}
.modal-backdrop.open { display: flex; }

/* ═══ Mobile Responsive ═══ */
.mobile-header { display: none; }
@media (max-width: 1023px) {
  .mobile-header { display: flex; }
  .main-content { overflow-x: hidden; padding: 16px; padding-top: 70px; }
  body { overflow-x: hidden; }
}
@media (min-width: 1024px) {
  .sidebar { display: flex !important; }
  .main-content { margin-left: 260px; }
}

.sidebar.open { display: flex !important; }
.sidebar-backdrop {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.5); z-index: 99;
}
.sidebar-backdrop.open { display: block; }

/* ═══ Footer (Auth) ═══ */
.auth-footer { text-align: center; font-size: 0.875rem; color: #494552; }
.auth-footer a { color: #494552; text-decoration: none; transition: color 0.3s; }
.auth-footer a:hover { color: #310f7a; }

.toggle-div {
  border-radius: 2rem;
}

.toggle-segment-left {
  border-radius: 2rem 0px 0px 2rem !important;
}

.toggle-segment-right {
  border-radius: 0px 2rem 2rem 0px !important;
}