/* ==========================================================================
   AIR DREAM TRAVEL & TOURISM - ADMIN DASHBOARD STYLESHEET
   ========================================================================== */

:root {
  --ad-primary: #004b87;
  --ad-primary-dark: #003360;
  --ad-primary-light: #e0f2fe;
  --ad-secondary: #00a896;
  --ad-secondary-light: #ccfbf1;
  --ad-accent: #f59e0b;
  --ad-accent-light: #fef3c7;
  --ad-success: #10b981;
  --ad-danger: #ef4444;
  --ad-warning: #f97316;
  --ad-dark: #0f172a;
  --ad-dark-card: #1e293b;
  --ad-gray-50: #f8fafc;
  --ad-gray-100: #f1f5f9;
  --ad-gray-200: #e2e8f0;
  --ad-gray-300: #cbd5e1;
  --ad-gray-500: #64748b;
  --ad-gray-700: #334155;
  --ad-gray-900: #0f172a;
  --ad-radius-sm: 8px;
  --ad-radius-md: 12px;
  --ad-radius-lg: 18px;
  --ad-radius-xl: 24px;
  --ad-shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --ad-shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.04);
  --ad-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --ad-shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.12), 0 10px 10px -5px rgba(0,0,0,0.04);
  --ad-sidebar-width: 270px;
}

.admin-panel-container,
.admin-login-screen {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ad-gray-900);
}

.admin-panel-container *,
.admin-panel-container *::before,
.admin-panel-container *::after,
.admin-login-screen *,
.admin-login-screen *::before,
.admin-login-screen *::after {
  box-sizing: border-box;
}

.admin-panel-container {
  background-color: var(--ad-gray-50);
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

/* ==========================================================================
   SIDEBAR
   ========================================================================== */
.admin-sidebar {
  width: var(--ad-sidebar-width);
  background: #0b192c;
  color: #fff;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  transition: transform 0.3s ease;
  box-shadow: 4px 0 20px rgba(0,0,0,0.15);
}

.sidebar-header {
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-brand-badge {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #004b87, #00a896);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.3rem;
  box-shadow: 0 4px 12px rgba(0, 168, 150, 0.35);
  flex-shrink: 0;
}

.sidebar-brand-text h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.sidebar-brand-text span {
  font-size: 0.72rem;
  font-weight: 600;
  color: #38bdf8;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: block;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-section-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 14px 14px 6px;
}

.sidebar-tab-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 11px 16px;
  background: transparent;
  color: #cbd5e1;
  border: none;
  border-radius: var(--ad-radius-md);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  font-family: inherit;
}

.sidebar-tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transform: translateX(3px);
}

.sidebar-tab-btn.active {
  background: linear-gradient(135deg, #0284c7, #004b87);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.tab-btn-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tab-btn-content i {
  width: 18px;
  text-align: center;
  font-size: 1rem;
}

.tab-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.15);
  color: #e2e8f0;
}

.sidebar-tab-btn.active .tab-badge {
  background: rgba(255,255,255,0.25);
  color: #fff;
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.15);
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: #4ade80;
  font-weight: 600;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
  animation: livePulse 2s infinite;
}

@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

/* ==========================================================================
   MAIN CONTENT AREA
   ========================================================================== */
.admin-main {
  flex: 1;
  margin-left: var(--ad-sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* TOPBAR */
.admin-topbar {
  background: #ffffff;
  border-bottom: 1px solid var(--ad-gray-200);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: var(--ad-shadow-sm);
}

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

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.3rem;
  color: var(--ad-gray-700);
  cursor: pointer;
}

.topbar-title h1 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ad-gray-900);
}

.topbar-title p {
  font-size: 0.78rem;
  color: var(--ad-gray-500);
}

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

.btn-admin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--ad-radius-sm);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-admin-primary {
  background: var(--ad-primary);
  color: #fff;
  border-color: var(--ad-primary);
}
.btn-admin-primary:hover {
  background: var(--ad-primary-dark);
  box-shadow: 0 4px 10px rgba(0, 75, 135, 0.25);
}

.btn-admin-success {
  background: #059669;
  color: #fff;
}
.btn-admin-success:hover {
  background: #047857;
}

.btn-admin-outline {
  background: #fff;
  border-color: var(--ad-gray-300);
  color: var(--ad-gray-700);
}
.btn-admin-outline:hover {
  background: var(--ad-gray-100);
  border-color: var(--ad-gray-400);
}

.btn-admin-danger-outline {
  background: #fff;
  border-color: #fca5a5;
  color: var(--ad-danger);
}
.btn-admin-danger-outline:hover {
  background: #fee2e2;
  border-color: var(--ad-danger);
}

/* ==========================================================================
   VIEW TAB CONTAINERS
   ========================================================================== */
.admin-view-content {
  flex: 1;
  padding: 28px;
}

.tab-pane {
  display: none;
  animation: fadeInPane 0.25s ease-in-out;
}

.tab-pane.active {
  display: block;
}

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

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

.stat-card {
  background: #fff;
  border-radius: var(--ad-radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--ad-shadow-sm);
  border: 1px solid var(--ad-gray-200);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--ad-shadow-md);
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.stat-icon.blue { background: #e0f2fe; color: #0284c7; }
.stat-icon.teal { background: #ccfbf1; color: #0d9488; }
.stat-icon.gold { background: #fef3c7; color: #d97706; }
.stat-icon.purple { background: #ede9fe; color: #7c3aed; }
.stat-icon.green { background: #dcfce7; color: #16a34a; }
.stat-icon.pink { background: #fce7f3; color: #db2777; }

.stat-details h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ad-gray-900);
  line-height: 1.1;
}

.stat-details p {
  font-size: 0.82rem;
  color: var(--ad-gray-500);
  margin-top: 2px;
}

/* BANNER ALERT */
.dashboard-banner {
  background: linear-gradient(135deg, #004b87, #0284c7);
  color: #fff;
  border-radius: var(--ad-radius-lg);
  padding: 28px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--ad-shadow-lg);
  position: relative;
  overflow: hidden;
}

.dashboard-banner::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -5%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 70%);
  pointer-events: none;
}

.banner-text h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.banner-text p {
  font-size: 0.9rem;
  color: #e0f2fe;
  max-width: 620px;
}

.banner-actions {
  display: flex;
  gap: 12px;
}

/* QUICK ACTIONS BAR */
.quick-actions-bar {
  background: #fff;
  border-radius: var(--ad-radius-md);
  padding: 20px;
  margin-bottom: 28px;
  border: 1px solid var(--ad-gray-200);
  box-shadow: var(--ad-shadow-sm);
}

.quick-actions-bar h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--ad-gray-900);
}

.quick-actions-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   SECTION HEADER WITH SEARCH & ADD
   ========================================================================== */
.view-header {
  background: #fff;
  border-radius: var(--ad-radius-md);
  padding: 20px 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--ad-gray-200);
  box-shadow: var(--ad-shadow-sm);
  flex-wrap: wrap;
  gap: 16px;
}

.view-header-title h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ad-gray-900);
  display: flex;
  align-items: center;
  gap: 10px;
}

.view-header-title p {
  font-size: 0.82rem;
  color: var(--ad-gray-500);
  margin-top: 2px;
}

.view-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-search-wrap {
  position: relative;
}

.admin-search-wrap i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ad-gray-500);
  font-size: 0.88rem;
}

.admin-search-input {
  padding: 8px 14px 8px 36px;
  border: 1px solid var(--ad-gray-300);
  border-radius: var(--ad-radius-sm);
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
  min-width: 220px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-search-input:focus {
  border-color: var(--ad-primary);
  box-shadow: 0 0 0 3px rgba(0, 75, 135, 0.15);
}

/* ==========================================================================
   CARDS GRID (ATTRACTIONS, GALLERY, TOURS, TRANSFERS, PACKAGES)
   ========================================================================== */
.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.item-card {
  background: #fff;
  border-radius: var(--ad-radius-md);
  border: 1px solid var(--ad-gray-200);
  overflow: hidden;
  box-shadow: var(--ad-shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.item-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--ad-shadow-md);
}

.item-card-image {
  position: relative;
  width: 100%;
  height: 180px;
  background-color: #e2e8f0;
  overflow: hidden;
}

.item-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.item-card:hover .item-card-image img {
  transform: scale(1.04);
}

.item-badge-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  z-index: 2;
}

.item-price-tag {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: #0284c7;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  z-index: 2;
}

.item-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.item-card-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ad-gray-900);
  margin-bottom: 6px;
  line-height: 1.35;
}

.item-card-sub {
  font-size: 0.8rem;
  color: var(--ad-gray-500);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.item-features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.feature-pill {
  background: var(--ad-gray-100);
  color: var(--ad-gray-700);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 6px;
}

.item-card-actions {
  margin-top: auto;
  display: flex;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--ad-gray-100);
}

.btn-card-action {
  flex: 1;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-edit {
  background: #e0f2fe;
  color: #0369a1;
}
.btn-edit:hover {
  background: #bae6fd;
}

.btn-delete {
  background: #fee2e2;
  color: #dc2626;
}
.btn-delete:hover {
  background: #fecaca;
}

/* ==========================================================================
   WALLPAPERS (SLIDERS) LIST
   ========================================================================== */
.wallpapers-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wallpaper-row {
  background: #fff;
  border: 1px solid var(--ad-gray-200);
  border-radius: var(--ad-radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: var(--ad-shadow-sm);
  transition: box-shadow 0.2s ease;
}

.wallpaper-row:hover {
  box-shadow: var(--ad-shadow-md);
}

.wallpaper-thumb {
  width: 140px;
  height: 85px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background-color: #cbd5e1;
}

.wallpaper-info {
  flex: 1;
}

.wallpaper-badge {
  display: inline-block;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 4px;
}

.wallpaper-info h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ad-gray-900);
  margin-bottom: 4px;
}

.wallpaper-info p {
  font-size: 0.8rem;
  color: var(--ad-gray-500);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

/* ==========================================================================
   REVIEWS LIST
   ========================================================================== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.review-admin-card {
  background: #fff;
  border: 1px solid var(--ad-gray-200);
  border-radius: var(--ad-radius-md);
  padding: 20px;
  box-shadow: var(--ad-shadow-sm);
  display: flex;
  flex-direction: column;
}

.review-admin-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.review-admin-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}

.review-admin-author h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ad-gray-900);
}

.review-admin-stars {
  color: #f59e0b;
  font-size: 0.8rem;
  margin-top: 2px;
}

.review-admin-quote {
  font-size: 0.84rem;
  color: var(--ad-gray-700);
  line-height: 1.5;
  font-style: italic;
  margin-bottom: 16px;
  flex: 1;
}

/* ==========================================================================
   SETTINGS FORM
   ========================================================================== */
.settings-container {
  background: #fff;
  border-radius: var(--ad-radius-md);
  border: 1px solid var(--ad-gray-200);
  padding: 28px;
  box-shadow: var(--ad-shadow-sm);
  max-width: 860px;
}

.settings-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ad-gray-900);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ad-gray-200);
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ad-gray-700);
}

.form-control {
  padding: 10px 14px;
  border: 1px solid var(--ad-gray-300);
  border-radius: var(--ad-radius-sm);
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
  background: #fff;
}

.form-control:focus {
  border-color: var(--ad-primary);
  box-shadow: 0 0 0 3px rgba(0, 75, 135, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 85px;
}

/* DUAL IMAGE INPUT FIELD */
.image-input-group {
  background: var(--ad-gray-50);
  border: 1px dashed var(--ad-gray-300);
  border-radius: var(--ad-radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.image-preview-box {
  width: 100%;
  height: 140px;
  background: #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.image-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-preview-placeholder {
  color: var(--ad-gray-500);
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.image-input-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

.file-upload-btn-label {
  padding: 8px 14px;
  background: #fff;
  border: 1px solid var(--ad-gray-300);
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ad-gray-700);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.file-upload-btn-label:hover {
  background: var(--ad-gray-100);
}

.file-upload-btn-label input[type="file"] {
  display: none;
}

/* ==========================================================================
   MODAL DIALOG
   ========================================================================== */
.admin-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.admin-modal-backdrop.open {
  display: flex;
  animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.admin-modal-card {
  background: #fff;
  border-radius: var(--ad-radius-lg);
  width: 95%;
  max-width: 620px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  position: relative;
  animation: modalSlideUp 0.25s ease-out;
}

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

.admin-modal-card form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.admin-modal-card .modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--ad-gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fafafa;
  flex-shrink: 0;
}

.modal-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ad-gray-900);
  margin: 0;
}

.modal-close-x {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  color: var(--ad-gray-500);
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close-x:hover {
  background: var(--ad-gray-200);
  color: var(--ad-gray-900);
}

.admin-modal-card .modal-body {
  padding: 22px 26px;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  min-height: 0;
  max-height: calc(90vh - 140px);
}

.admin-modal-card .modal-footer {
  flex-shrink: 0;
  padding: 16px 26px;
  border-top: 1px solid var(--ad-gray-200);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  background: #ffffff;
  position: sticky;
  bottom: 0;
  z-index: 20;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.04);
}

.admin-modal-card .form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  margin-bottom: 14px;
}

.admin-modal-card .form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  margin-bottom: 14px;
}

.admin-modal-card .form-field {
  min-width: 0;
  width: 100%;
  margin-bottom: 14px;
}

.admin-modal-card .form-field label {
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

.admin-modal-card .form-control {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.admin-modal-card .image-input-group,
.admin-modal-card .image-input-controls {
  max-width: 100%;
  box-sizing: border-box;
}

/* ==========================================================================
   EXACT BUTTON DESIGN MATCH FOR CANCEL & SAVE CHANGES (DATA ADD / EDIT)
   ========================================================================== */
.btn-action-cancel,
.modal-footer .btn-admin-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ffffff;
  color: #004b87;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px 24px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  text-decoration: none;
  line-height: 1.2;
  user-select: none;
}

.btn-action-cancel:hover,
.modal-footer .btn-admin-outline:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #003360;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.btn-action-cancel:active,
.modal-footer .btn-admin-outline:active {
  transform: translateY(1px);
}

.btn-action-save,
.modal-footer .btn-admin-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #004e92;
  color: #ffffff;
  border: 1.5px solid #004e92;
  border-radius: 10px;
  padding: 10px 24px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0, 78, 146, 0.25);
  text-decoration: none;
  line-height: 1.2;
  user-select: none;
}

.btn-action-save i,
.modal-footer .btn-admin-primary i {
  font-size: 0.95rem;
  font-weight: 900;
}

.btn-action-save:hover,
.modal-footer .btn-admin-primary:hover {
  background: #003c73;
  border-color: #003c73;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 78, 146, 0.4);
  transform: translateY(-1px);
}

.btn-action-save:active,
.modal-footer .btn-admin-primary:active {
  transform: translateY(0);
}


/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.admin-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.admin-toast {
  background: #0f172a;
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--ad-radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--ad-shadow-xl);
  pointer-events: auto;
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-toast.success {
  border-left: 4px solid var(--ad-success);
}

.admin-toast.error {
  border-left: 4px solid var(--ad-danger);
}

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

/* ==========================================================================
   RESPONSIVENESS
   ========================================================================== */
@media (max-width: 991px) {
  .admin-sidebar {
    transform: translateX(-100%);
  }
  .admin-sidebar.open {
    transform: translateX(0);
  }
  .admin-main {
    margin-left: 0;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
  .dashboard-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .admin-view-content {
    padding: 16px;
  }
  .admin-topbar {
    padding: 12px 16px;
  }
  .topbar-actions .btn-text-hide {
    display: none;
  }
  .items-grid {
    grid-template-columns: 1fr;
  }
  .wallpaper-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .wallpaper-thumb {
    width: 100%;
    height: 140px;
  }
}

/* ==========================================================================
   EXACT NAVBAR LOGO MATCHING STYLES FOR ADMIN
   ========================================================================== */
.sidebar-brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.admin-navbar-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 14px;
  background: #FFFFFF;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

.sidebar-brand-logo-wrap .air-dream-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.sidebar-brand-logo-wrap .air-dream-brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.3px;
}

.sidebar-brand-logo-wrap .air-dream-brand-sub {
  font-size: 0.65rem;
  font-weight: 700;
  color: #F5B301;
  letter-spacing: 2px;
  margin-top: 3px;
  text-transform: uppercase;
}

/* ==========================================================================
   ADMIN LOGIN SCREEN (Protected by Base Number & Password)
   ========================================================================== */
.admin-login-screen {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top right, #004b87 0%, #081a33 60%, #030a16 100%);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.admin-login-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.admin-login-card {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-radius: 24px;
  width: 100%;
  max-width: 440px;
  padding: 36px 32px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
  text-align: center;
  animation: loginCardPop 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes loginCardPop {
  from { opacity: 0; transform: scale(0.95) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.admin-login-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  text-align: left;
}

.admin-login-brand .admin-navbar-logo {
  width: 54px;
  height: 54px;
  box-shadow: 0 6px 18px rgba(10, 31, 68, 0.15);
}

.admin-login-brand .air-dream-brand-name {
  color: #0A1F44;
  font-size: 1.45rem;
}

.admin-login-brand .air-dream-brand-sub {
  color: #C5A059;
}

.admin-login-header h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0A1F44;
  margin-bottom: 6px;
}

.admin-login-header p {
  font-size: 0.85rem;
  color: #64748B;
  margin-bottom: 22px;
  line-height: 1.45;
}

.admin-login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

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

.login-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94A3B8;
  font-size: 1rem;
}

.login-input-field {
  width: 100%;
  padding: 13px 14px 13px 44px;
  border: 1.5px solid #CBD5E1;
  border-radius: 12px;
  font-size: 0.92rem;
  font-family: inherit;
  color: #0F172A;
  background: #F8FAFC;
  outline: none;
  transition: all 0.2s ease;
}

.login-input-field:focus {
  background: #FFFFFF;
  border-color: #0284C7;
  box-shadow: 0 0 0 3.5px rgba(2, 132, 199, 0.15);
}

.password-toggle-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #94A3B8;
  cursor: pointer;
  font-size: 1rem;
}

.password-toggle-btn:hover {
  color: #0284C7;
}

.login-error-banner {
  display: none;
  background: #FEE2E2;
  color: #DC2626;
  border-left: 4px solid #EF4444;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: left;
  margin-bottom: 8px;
}

.login-quick-helper {
  background: #EFF6FF;
  border: 1px dashed #93C5FD;
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 14px;
  font-size: 0.78rem;
  color: #1E40AF;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.login-quick-helper:hover {
  background: #DBEAFE;
}

.login-btn-submit {
  width: 100%;
  padding: 13px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 12px;
  background: linear-gradient(135deg, #004b87, #0284c7);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 20px rgba(0, 75, 135, 0.35);
  transition: all 0.2s ease;
}

.login-btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(0, 75, 135, 0.5);
  background: linear-gradient(135deg, #0284c7, #00a896);
}

/* ==========================================================================
   IMAGE URL PRESETS & ENHANCED IMAGE CONTROLS
   ========================================================================== */
.image-url-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.img-preset-chip {
  padding: 4px 10px;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s;
}

.img-preset-chip:hover {
  background: #E0F2FE;
  color: #0369A1;
  border-color: #38BDF8;
}

.image-input-url-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
}

/* ==========================================================================
   UNIFORM LIVE CARD BUTTON PREVIEW (.btn-book-tour)
   ========================================================================== */
.admin-panel-container .btn-book-tour {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 16px;
  border: 1.5px solid #0284C7;
  color: #0369A1;
  background: #FFFFFF;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-book-tour:hover {
  background: #0284C7;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
  transform: translateY(-1px);
}


