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

:root {
  --primary: #b76e79; /* Luxury Champagne Pink */
  --primary-light: #d4a3a9;
  --primary-dark: #9a5560;
  --primary-glow: rgba(183, 110, 121, 0.15);
  --gold: #b76e79; 
  --gold-light: #d4a3a9; 
  --bg: #fdfbf7; 
  --bg2: #f5f3ff; 
  --bg3: #ffffff; 
  --surface: rgba(109, 40, 217, 0.03);
  --surface2: rgba(109, 40, 217, 0.07);
  --border: rgba(109, 40, 217, 0.1);
  --border-purple: rgba(109, 40, 217, 0.15);
  --text: #4c1d95; /* Rich Violet */
  --text2: #4b5563; 
  --text3: #9ca3af; 
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --info: #4c1d95;
  --sidebar-w: 280px;
  --topbar-h: 76px;
  --radius: 24px;
  --radius-sm: 14px;
  --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 4px 12px rgba(183, 110, 121, 0.08);
  --shadow-md: 0 10px 30px rgba(183, 110, 121, 0.12);
  --shadow-lg: 0 20px 50px rgba(183, 110, 121, 0.15);
}

html,
body {
  height: 100%;
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* scrollbar */
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}

/* ---- GLASS ---- */
.glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(92, 65, 147, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.8);
  border-left: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

/* ============================
   LOGIN
   ============================ */
.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 30% 40%, #f4f2ee 0%, #e5e7eb 60%);
  overflow: hidden;
}

.login-bg-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  animation: float 8s ease-in-out infinite;
}

.orb1 {
  width: 420px;
  height: 420px;
  background: var(--primary);
  top: -10%;
  left: -10%;
  animation-delay: 0s;
}

.orb2 {
  width: 300px;
  height: 300px;
  background: var(--gold);
  bottom: -5%;
  right: -5%;
  animation-delay: 3s;
}

.orb3 {
  width: 250px;
  height: 250px;
  background: #4a1d60;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 1.5s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-20px) scale(1.05);
  }
}

.login-card {
  width: 100%;
  max-width: 420px;
  padding: 44px 40px;
  position: relative;
  z-index: 2;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px var(--primary-glow);
}

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

.logo-icon {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 20px var(--primary));
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    filter: drop-shadow(0 0 10px var(--primary));
  }

  50% {
    filter: drop-shadow(0 0 28px var(--gold));
  }
}

.login-title {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--text));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-subtitle {
  color: var(--text2);
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 4px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.input-wrap {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  pointer-events: none;
}

.input-wrap input,
.input-wrap select,
.input-wrap textarea {
  width: 100%;
  padding: 12px 14px 12px 42px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.input-wrap input:focus,
.input-wrap select:focus,
.input-wrap textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.input-wrap input::placeholder {
  color: var(--text3);
}

.login-error {
  background: rgba(224, 85, 85, 0.15);
  border: 1px solid var(--danger);
  color: var(--danger);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.88rem;
}

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--primary-glow);
}

.btn-primary:hover::after {
  opacity: 1;
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-full {
  width: 100%;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid var(--border-purple);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-secondary:hover {
  background: var(--surface2);
  border-color: var(--primary-light);
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid rgba(224, 85, 85, 0.4);
  border-radius: var(--radius-sm);
  background: rgba(224, 85, 85, 0.12);
  color: var(--danger);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-danger:hover {
  background: rgba(224, 85, 85, 0.25);
}

.btn-success {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid rgba(46, 204, 122, 0.4);
  border-radius: var(--radius-sm);
  background: rgba(46, 204, 122, 0.12);
  color: var(--success);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-success:hover {
  background: rgba(46, 204, 122, 0.25);
}

.btn-icon {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 6px;
  border-radius: 6px;
  transition: background var(--transition);
}

.btn-icon:hover {
  background: var(--surface2);
}

/* spinner */
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.hidden {
  display: none !important;
}

/* ============================
   LAYOUT
   ============================ */
.app {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ---- SIDEBAR ---- */
.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: #4c1d95;
  color: white;
  border-right: 1px solid var(--border);
  transition: transform var(--transition);
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 100;
  box-shadow: 10px 0 30px rgba(92, 65, 147, 0.05);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 20px;
  border-bottom: 1px solid var(--border);
}

.brand-icon {
  font-size: 2rem;
  filter: drop-shadow(0 0 12px var(--primary));
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--text));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-tag {
  font-size: 0.7rem;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-section-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 12px 10px 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  margin: 2px 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all var(--transition);
  position: relative;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.nav-item.active {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 8px 20px var(--primary-glow);
}

.nav-item.active::before {
  display: none;
}

.nav-icon {
  font-size: 1.1rem;
  width: 22px;
  text-align: center;
}

.sidebar-footer {
  padding: 16px 12px;
  border-top: 1px solid var(--border);
}

.btn-logout {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid rgba(224, 85, 85, 0.3);
  border-radius: var(--radius-sm);
  background: rgba(224, 85, 85, 0.08);
  color: var(--danger);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-logout:hover {
  background: rgba(224, 85, 85, 0.2);
}

/* ---- TOPBAR ---- */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.topbar {
  height: var(--topbar-h);
  min-height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: #4c1d95;
  color: white;
  position: sticky;
  top: 0;
  z-index: 50;
}

.sidebar-toggle {
  background: none;
  border: none;
  color: var(--text2);
  font-size: 1.4rem;
  cursor: pointer;
  display: none;
}

.topbar-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  flex: 1;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-greeting {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.88rem;
}

.avatar-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 0 12px var(--primary-glow);
}

/* ---- PAGE CONTAINER ---- */
.page-container {
  flex: 1;
  overflow-y: auto;
  padding: 28px;
}

/* ============================
   STAT CARDS
   ============================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--bg3);
  border: 1px solid var(--border-purple);
  border-radius: var(--radius);
  padding: 26px 24px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-purple);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary-glow), transparent 70%);
}

.stat-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.stat-icon {
  font-size: 1.8rem;
}

.stat-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(46, 204, 122, 0.15);
  color: var(--success);
}

.stat-badge.down {
  background: rgba(224, 85, 85, 0.15);
  color: var(--danger);
}

.stat-value {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--primary);
}

.stat-label {
  color: var(--text2);
  font-size: 0.85rem;
  margin-top: 6px;
  font-weight: 500;
}

/* ============================
   SECTION HEADER
   ============================ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.section-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ============================
   SEARCH BAR
   ============================ */
.search-bar {
  position: relative;
}

.search-bar input {
  padding: 9px 14px 9px 38px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
  width: 220px;
  transition: border-color var(--transition);
}

.search-bar input:focus {
  outline: none;
  border-color: var(--primary-light);
}

.search-bar::before {
  content: '🔍';
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  pointer-events: none;
}

/* ============================
   TABLE
   ============================ */
.table-wrap {
  background: var(--bg3);
  border: 1px solid var(--border-purple);
  border-radius: var(--radius);
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead tr {
  background: rgba(93, 2, 127, 0.06);
  border-bottom: 1px solid var(--border);
}

th {
  padding: 13px 16px;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}

tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background var(--transition);
}

tbody tr:last-child {
  border-bottom: none;
}

tbody tr:hover {
  background: var(--surface);
}

td {
  padding: 13px 16px;
  font-size: 0.88rem;
  color: var(--text);
  vertical-align: middle;
}

.td-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-success {
  background: rgba(46, 204, 122, 0.15);
  color: var(--success);
  border: 1px solid rgba(46, 204, 122, 0.3);
}

.badge-warning {
  background: rgba(240, 165, 0, 0.15);
  color: var(--warning);
  border: 1px solid rgba(240, 165, 0, 0.3);
}

.badge-danger {
  background: rgba(224, 85, 85, 0.15);
  color: var(--danger);
  border: 1px solid rgba(224, 85, 85, 0.3);
}

.badge-info {
  background: rgba(74, 158, 218, 0.15);
  color: var(--info);
  border: 1px solid rgba(74, 158, 218, 0.3);
}

.badge-purple {
  background: rgba(123, 45, 139, 0.2);
  color: var(--primary-light);
  border: 1px solid var(--border-purple);
}

/* image thumbnail */
.thumb {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border-purple);
}

.thumb-placeholder {
  width: 44px;
  height: 44px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* loading row */
.loading-row td {
  text-align: center;
  padding: 40px;
  color: var(--text3);
}

.empty-row td {
  text-align: center;
  padding: 40px;
  color: var(--text3);
  font-size: 0.9rem;
}

/* ============================
   MODAL
   ============================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-box {
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.modal-box.wide {
  max-width: 780px;
}

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

.modal-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text2);
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all var(--transition);
}

.modal-close:hover {
  background: var(--surface2);
  color: var(--text);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* modal form */
.modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-form .form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.modal-form .input-wrap input,
.modal-form .input-wrap select,
.modal-form .input-wrap textarea {
  padding: 10px 12px 10px 40px;
  font-size: 0.9rem;
}

.modal-form .input-wrap textarea {
  min-height: 90px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* ============================
   TOAST
   ============================ */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--bg3);
  border: 1px solid var(--border);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  font-size: 0.88rem;
  font-weight: 500;
  min-width: 280px;
  animation: slideIn 0.3s ease;
}

.toast.success {
  border-color: rgba(46, 204, 122, 0.4);
}

.toast.error {
  border-color: rgba(224, 85, 85, 0.4);
}

.toast.info {
  border-color: rgba(74, 158, 218, 0.4);
}

@keyframes slideIn {
  from {
    transform: translateX(100px);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  to {
    transform: translateX(120px);
    opacity: 0;
  }
}

.toast.removing {
  animation: slideOut 0.3s ease forwards;
}

/* ============================
   DASHBOARD PAGE
   ============================ */
.dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
}

.dash-card {
  background: var(--bg3);
  border: 1px solid var(--border-purple);
  border-radius: var(--radius);
  padding: 22px;
}

.dash-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text2);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

.activity-text {
  font-size: 0.85rem;
  color: var(--text);
  flex: 1;
}

.activity-time {
  font-size: 0.75rem;
  color: var(--text3);
}

.welcome-banner {
  background: linear-gradient(135deg, rgba(93, 2, 127, 0.08), rgba(212, 168, 67, 0.05));
  border: 1px solid var(--border-purple);
  border-radius: var(--radius);
  padding: 36px 40px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.welcome-banner::after {
  content: '✨';
  font-size: 7rem;
  position: absolute;
  right: 30px;
  opacity: 0.1;
  top: 50%;
  transform: translateY(-50%);
}

.welcome-banner h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.welcome-banner p {
  color: var(--text2);
  font-size: 1rem;
  font-weight: 500;
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 900px) {
  .sidebar {
    position: fixed;
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
  }

  .sidebar-toggle {
    display: block !important;
  }

  .dash-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .search-bar input {
    width: 160px;
  }
}

@media (max-width: 520px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .page-container {
    padding: 16px;
  }

  .modal-box {
    margin: 10px;
  }
}

/* Global Button Styles */
.btn-primary, button:not(.close):not(.navbar-toggler) {
  background: #b76e79 !important;
  color: #fff !important;
  border: none !important;
  font-weight: 700 !important;
  transition: all var(--transition);
}

.btn-primary:hover, button:not(.close):not(.navbar-toggler):hover {
  background: #a05a65 !important;
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(183, 110, 121, 0.3);
}

/* =================================================================
   LUXURY TOGGLE SWITCH
   ================================================================= */
.luxury-toggle {
    width: 44px;
    height: 22px;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    position: relative;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 !important;
    outline: none;
    display: inline-block;
    vertical-align: middle;
}

.luxury-toggle.active {
    background: linear-gradient(135deg, var(--primary), var(--text)) !important;
    border-color: var(--primary-light) !important;
    box-shadow: 0 0 15px var(--primary-glow);
}

.toggle-handle {
    width: 16px;
    height: 16px;
    background: white !important;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.luxury-toggle.active .toggle-handle {
    left: 23px;
    box-shadow: -2px 2px 4px rgba(0, 0, 0, 0.1);
}

.luxury-toggle:hover {
    transform: scale(1.05);
}

.luxury-toggle:active {
    transform: scale(0.95);
}
/* Global Button Color Override */
.btn, .btn-primary, .btn-secondary, .btn-success, .btn-danger, .btn-warning, .btn-info, .search-btn-v2, .search-btn, .btn-join, .promo-btn, .slider-nav-btn, .btn-view-all, .btn-cat-explore { background-color: #b76e79 !important; color: #ffffff !important; border-color: #b76e79 !important; }
.btn:hover, .btn-primary:hover, .btn-secondary:hover, .btn-success:hover, .btn-danger:hover, .btn-warning:hover, .btn-info:hover, .search-btn-v2:hover, .search-btn:hover, .btn-join:hover, .promo-btn:hover, .slider-nav-btn:hover, .btn-view-all:hover, .btn-cat-explore:hover { background-color: #a05a65 !important; color: #ffffff !important; border-color: #a05a65 !important; }
