/* =====================================================================
   Shree Rajeshwar Travels — Admin panel stylesheet
   ===================================================================== */

:root {
  --a-brand:   #0e7c6b;
  --a-brand-2: #0b6153;
  --a-brand-3: #073b34;
  --a-brand-4: #129b82;
  --a-brand-50:#ecfbf6;
  --a-accent:  #f97316;
  --a-accent-2:#ea6205;

  /* RGB channels so rgba() overlays follow the active theme */
  --a-brand-rgb: 18, 155, 130;
  --a-dark-rgb:  7, 59, 52;
  --a-ink:     #0d1f1b;
  --a-body:    #4d635e;
  --a-muted:   #7f948f;
  --a-line:    #e4eeeb;
  --a-line-2:  #f1f7f5;
  --a-bg:      #f4f8f7;
  --a-radius:  14px;
  --a-shadow:  0 8px 26px -14px rgba(var(--a-dark-rgb),.28);
  --a-font:    'Outfit', 'Segoe UI', system-ui, sans-serif;
  --a-body-font: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --sidebar-w: 258px;
}

* , *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--a-body-font);
  font-size: 15px;
  line-height: 1.65;
  color: var(--a-body);
  background: var(--a-bg);
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }

h1,h2,h3,h4,h5 { font-family: var(--a-font); color: var(--a-ink); margin: 0 0 .5em; line-height: 1.25; letter-spacing: -.015em; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.1rem; }
h4 { font-size: 1rem; }
p  { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--a-brand); text-decoration: none; }
a:hover { color: var(--a-accent); }
ul { margin: 0; padding: 0; }
li { list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
:focus-visible { outline: 2px solid var(--a-brand); outline-offset: 2px; }

.icon    { width: 20px; height: 20px; flex: none; }
.icon-xs { width: 14px; height: 14px; flex: none; }
.icon-sm { width: 17px; height: 17px; flex: none; }
.icon-lg { width: 26px; height: 26px; flex: none; }

/* ---------------------------------------------------------------------
   Login screen
   ------------------------------------------------------------------ */
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(var(--a-dark-rgb),.94), rgba(var(--a-brand-rgb),.9)),
    url('https://images.unsplash.com/photo-1476514525535-07fb3b4ae5f1?auto=format&fit=crop&w=1920&q=80') center/cover;
}
.login-card {
  width: 100%;
  max-width: 420px;
  padding: 40px 36px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 30px 70px -25px rgba(0,0,0,.5);
}
.login-brand { text-align: center; margin-bottom: 28px; }
.login-brand .mark {
  width: 58px; height: 58px;
  display: grid; place-items: center;
  margin: 0 auto 16px;
  border-radius: 17px;
  background: linear-gradient(140deg, var(--a-brand-4), var(--a-brand-2));
  color: #fff;
}
.login-brand .mark svg { width: 30px; height: 30px; }
.login-brand h1 { font-size: 1.35rem; margin-bottom: 4px; }
.login-brand p { color: var(--a-muted); font-size: .92rem; }
.login-hint {
  margin-top: 22px;
  padding: 13px 16px;
  border-radius: 12px;
  background: var(--a-brand-50);
  color: var(--a-brand-2);
  font-size: .85rem;
  text-align: center;
}
.login-back { display: block; text-align: center; margin-top: 18px; font-size: .88rem; color: var(--a-muted); }

/* ---------------------------------------------------------------------
   Shell: sidebar + main
   ------------------------------------------------------------------ */
.admin-shell { display: flex; min-height: 100vh; }

.sidebar-nav {
  width: var(--sidebar-w);
  flex: none;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  background: var(--a-brand-3);
  color: rgba(255,255,255,.7);
  overflow-y: auto;
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.sidebar-brand {
  display: flex; align-items: center; gap: 11px;
  padding: 22px 20px;
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.sidebar-brand .mark {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--a-brand-4), var(--a-brand-2));
  color: #fff;
}
.sidebar-brand strong { display: block; font-family: var(--a-font); font-size: 1rem; color: #fff; line-height: 1.2; }
.sidebar-brand span { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.45); }

.sidebar-menu { padding: 16px 12px 26px; flex: 1; }
.menu-label {
  padding: 16px 12px 8px;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
}
.sidebar-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  margin-bottom: 2px;
  border-radius: 11px;
  font-family: var(--a-font);
  font-size: .93rem;
  font-weight: 500;
  color: rgba(255,255,255,.72);
  transition: all .2s;
}
.sidebar-menu a:hover { background: rgba(255,255,255,.07); color: #fff; }
.sidebar-menu a.active { background: var(--a-brand); color: #fff; box-shadow: 0 8px 18px -10px rgba(var(--a-brand-rgb),.9); }
.sidebar-menu a svg { width: 19px; height: 19px; opacity: .9; }
.sidebar-menu a .count {
  margin-left: auto;
  padding: 1px 8px;
  border-radius: 100px;
  background: var(--a-accent);
  color: #fff;
  font-size: .7rem;
  font-weight: 600;
}

.admin-main {
  flex: 1;
  min-width: 0;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
}

/* Topbar */
.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 26px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--a-line);
}
.admin-topbar h1 { font-size: 1.22rem; margin: 0; }
.admin-topbar .sub { font-size: .84rem; color: var(--a-muted); }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.admin-user {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 8px;
  border-radius: 100px;
  background: var(--a-brand-50);
}
.admin-user .avatar {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--a-brand);
  color: #fff;
  font-family: var(--a-font);
  font-weight: 600;
  font-size: .85rem;
}
.admin-user strong { font-family: var(--a-font); font-size: .88rem; color: var(--a-ink); }

.sidebar-toggle { display: none; width: 40px; height: 40px; place-items: center; border-radius: 11px; border: 1px solid var(--a-line); }

.admin-content { padding: 26px; flex: 1; }
.admin-footer { padding: 18px 26px; border-top: 1px solid var(--a-line); font-size: .85rem; color: var(--a-muted); }

/* ---------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px;
  border-radius: 11px;
  border: 1.5px solid transparent;
  font-family: var(--a-font);
  font-size: .9rem;
  font-weight: 600;
  transition: all .2s;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--a-brand); color: #fff; }
.btn-primary:hover { background: var(--a-brand-2); color: #fff; }
.btn-accent { background: var(--a-accent); color: #fff; }
.btn-accent:hover { background: var(--a-accent-2); color: #fff; }
.btn-outline { border-color: var(--a-line); background: #fff; color: var(--a-ink); }
.btn-outline:hover { border-color: var(--a-brand); color: var(--a-brand); background: var(--a-brand-50); }
.btn-danger { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.btn-danger:hover { background: #dc2626; color: #fff; border-color: #dc2626; }
.btn-sm { padding: 7px 14px; font-size: .84rem; border-radius: 9px; }
.btn-block { width: 100%; }

.icon-btn {
  width: 34px; height: 34px;
  display: inline-grid; place-items: center;
  border-radius: 9px;
  border: 1px solid var(--a-line);
  background: #fff;
  color: var(--a-body);
  transition: all .2s;
}
.icon-btn:hover { border-color: var(--a-brand); color: var(--a-brand); background: var(--a-brand-50); }
.icon-btn.danger:hover { border-color: #dc2626; color: #dc2626; background: #fef2f2; }
.icon-btn svg { width: 16px; height: 16px; }

/* ---------------------------------------------------------------------
   Cards, tables, forms
   ------------------------------------------------------------------ */
.card {
  background: #fff;
  border: 1px solid var(--a-line);
  border-radius: var(--a-radius);
  box-shadow: var(--a-shadow);
  margin-bottom: 22px;
}
.card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 18px 22px;
  border-bottom: 1px solid var(--a-line);
}
.card-head h3 { margin: 0; display: flex; align-items: center; gap: 10px; }
.card-head h3 svg { color: var(--a-brand); }
.card-body { padding: 22px; }
.card-foot { padding: 16px 22px; border-top: 1px solid var(--a-line); display: flex; gap: 10px; flex-wrap: wrap; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: 8px; }
.gap { gap: 16px; }
.wrap { flex-wrap: wrap; }
.text-muted { color: var(--a-muted); }
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }

/* Stat tiles */
.stat {
  display: flex; align-items: center; gap: 16px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--a-line);
  border-radius: var(--a-radius);
  box-shadow: var(--a-shadow);
  transition: transform .25s;
}
.stat:hover { transform: translateY(-3px); }
.stat-icon {
  width: 52px; height: 52px; flex: none;
  display: grid; place-items: center;
  border-radius: 15px;
  background: var(--a-brand-50);
  color: var(--a-brand);
}
.stat-icon svg { width: 24px; height: 24px; }
.stat.accent .stat-icon { background: #fff5ec; color: var(--a-accent); }
.stat.blue   .stat-icon { background: #eff6ff; color: #2563eb; }
.stat.purple .stat-icon { background: #f5f3ff; color: #7c3aed; }
.stat strong { display: block; font-family: var(--a-font); font-size: 1.75rem; line-height: 1.1; color: var(--a-ink); }
.stat span { font-size: .86rem; color: var(--a-muted); }

/* Table */
.table-wrap { overflow-x: auto; }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: .91rem;
}
table.data th {
  padding: 13px 16px;
  text-align: left;
  font-family: var(--a-font);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--a-muted);
  background: var(--a-line-2);
  white-space: nowrap;
}
table.data th:first-child { border-top-left-radius: 10px; }
table.data th:last-child  { border-top-right-radius: 10px; }
table.data td { padding: 13px 16px; border-bottom: 1px solid var(--a-line-2); vertical-align: middle; }
table.data tr:hover td { background: #fbfdfd; }
table.data td strong { color: var(--a-ink); font-family: var(--a-font); }
table.data .thumb { width: 62px; height: 46px; border-radius: 8px; object-fit: cover; background: var(--a-line-2); }
table.data .actions { display: flex; gap: 6px; justify-content: flex-end; }
table.data .nowrap { white-space: nowrap; }

.pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 11px;
  border-radius: 100px;
  font-family: var(--a-font);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .03em;
}
.pill-green  { background: #ecfdf5; color: #047857; }
.pill-grey   { background: #f1f5f5; color: #64748b; }
.pill-orange { background: #fff7ed; color: #c2410c; }
.pill-blue   { background: #eff6ff; color: #1d4ed8; }
.pill-red    { background: #fef2f2; color: #b91c1c; }

/* Forms */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-family: var(--a-font); font-size: .85rem; font-weight: 600; color: var(--a-ink); }
.form-group small { font-size: .8rem; color: var(--a-muted); }
.form-group .req { color: var(--a-accent); }

.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--a-line);
  border-radius: 11px;
  background: #fff;
  font-size: .93rem;
  color: var(--a-ink);
  transition: border-color .2s, box-shadow .2s;
}
.form-control:focus { outline: none; border-color: var(--a-brand); box-shadow: 0 0 0 4px rgba(var(--a-brand-rgb),.14); }
.form-control::placeholder { color: #a9bab6; }
textarea.form-control { min-height: 120px; resize: vertical; font-family: inherit; }
textarea.tall { min-height: 220px; }
textarea.code { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: .86rem; line-height: 1.6; }
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237f948f' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 17px;
  padding-right: 38px;
}
input[type="file"].form-control { padding: 9px 12px; font-size: .86rem; }

/* Password input with a show / hide button */
.password-field { position: relative; }
.password-field .form-control { padding-right: 46px; }
.password-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--a-muted);
  transition: color .2s, background .2s;
}
.password-toggle:hover { color: var(--a-brand); background: var(--a-brand-50); }
.password-toggle svg { width: 18px; height: 18px; }
.password-toggle [hidden] { display: none; }

.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch .track {
  width: 44px; height: 25px;
  border-radius: 100px;
  background: #cfdcd9;
  position: relative;
  transition: background .22s;
}
.switch .track::after {
  content: '';
  position: absolute; top: 3px; left: 3px;
  width: 19px; height: 19px;
  border-radius: 50%;
  background: #fff;
  transition: transform .22s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.switch input:checked + .track { background: var(--a-brand); }
.switch input:checked + .track::after { transform: translateX(19px); }

/* Image upload field */
.image-field { display: flex; gap: 16px; align-items: flex-start; }
.image-preview {
  width: 128px; height: 96px; flex: none;
  display: grid; place-items: center;
  border-radius: 12px;
  border: 1.5px dashed var(--a-line);
  background: var(--a-line-2);
  overflow: hidden;
  color: #b6c8c4;
}
.image-preview img { width: 100%; height: 100%; object-fit: cover; }
.image-inputs { flex: 1; display: grid; gap: 8px; min-width: 0; }

/* Alerts */
.alert {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 13px 17px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: .92rem;
}
.alert svg { width: 19px; height: 19px; flex: none; margin-top: 2px; }
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-info    { background: #fff7ed; color: #9a3412; border: 1px solid #fed7aa; }

/* Empty state */
.empty {
  padding: 56px 20px;
  text-align: center;
  color: var(--a-muted);
}
.empty svg { width: 42px; height: 42px; margin: 0 auto 14px; color: #c6d8d4; }

/* Tabs inside forms */
.form-tabs { display: flex; gap: 4px; padding: 5px; background: var(--a-line-2); border-radius: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.form-tabs button {
  padding: 9px 18px; border-radius: 9px;
  font-family: var(--a-font); font-size: .88rem; font-weight: 600; color: var(--a-body);
}
.form-tabs button.active { background: #fff; color: var(--a-brand-2); box-shadow: 0 2px 6px rgba(var(--a-dark-rgb),.08); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* Pagination */
.pagination { display: flex; gap: 6px; justify-content: center; padding: 18px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 38px; height: 38px;
  display: grid; place-items: center;
  padding-inline: 11px;
  border-radius: 10px;
  border: 1px solid var(--a-line);
  background: #fff;
  font-family: var(--a-font); font-size: .88rem; font-weight: 600; color: var(--a-body);
}
.pagination a:hover { border-color: var(--a-brand); color: var(--a-brand); }
.pagination .current { background: var(--a-brand); border-color: var(--a-brand); color: #fff; }
.pagination .disabled { opacity: .45; pointer-events: none; }

.sidebar-backdrop {
  position: fixed; inset: 0; z-index: 55;
  background: rgba(var(--a-dark-rgb),.45);
  opacity: 0; visibility: hidden; transition: all .3s;
}
.sidebar-backdrop.show { opacity: 1; visibility: visible; }

/* ---------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------ */
@media (max-width: 1200px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 991px) {
  .sidebar-nav { transform: translateX(-100%); box-shadow: 12px 0 40px -18px rgba(0,0,0,.5); }
  .sidebar-nav.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
  .sidebar-toggle { display: grid; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .admin-content { padding: 18px 16px; }
  .admin-topbar { padding: 12px 16px; }
  .admin-topbar h1 { font-size: 1.05rem; }
  .admin-user strong, .admin-topbar .sub { display: none; }
  .admin-user { padding: 4px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .image-field { flex-direction: column; }
  .image-preview { width: 100%; height: 150px; }
  .card-body { padding: 18px 16px; }
  .card-head { padding: 16px; }
  .login-card { padding: 30px 22px; }
  table.data { font-size: .86rem; }
  table.data th, table.data td { padding: 11px 12px; }
}
