/* =============================================
   SKYLOOM TRAVEL — 2026 Modern Design Layer
   Loaded AFTER style.css and theme.css
   ============================================= */

/* ---- Global Refinements ---- */
.card {
  border-radius: var(--radius-lg, 16px);
  border: 1px solid var(--border-color, #e2e8f0);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.form-control, .form-select {
  border-radius: var(--radius-sm, 8px);
  border: 1.5px solid var(--border-color, #e2e8f0);
  padding: 10px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-size: 14px;
}

.form-control:focus, .form-select:focus {
  border-color: var(--theme-bg);
  box-shadow: 0 0 0 3px rgba(16, 98, 254, 0.08);
}

.form-floating > .form-control,
.form-floating > .form-select {
  border-radius: var(--radius-sm, 8px);
}

/* ---- Alerts ---- */
.alert {
  border-radius: var(--radius-md, 12px);
  border: none;
  font-size: 14px;
}

/* ---- Dropdown Menus ---- */
.dropdown-menu {
  border-radius: var(--radius-md, 12px);
  border: 1px solid var(--border-color, #e2e8f0);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  animation: dropdownFadeIn 0.15s ease;
}

.dropdown-item {
  border-radius: var(--radius-sm, 8px);
  padding: 8px 12px;
  font-size: 14px;
  transition: background 0.15s ease;
}

.dropdown-item:hover {
  background: var(--surface-hover, #f1f5f9);
}

@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Booking Detail Form ---- */
.booking-detail-form {
  border-radius: var(--radius-lg, 16px) !important;
  overflow: hidden;
  border: none !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18) !important;
}

.booking-detail-form .form-title-wrap {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.booking-detail-form .card-item {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  margin-bottom: 0 !important;
}

.booking-detail-form .section-block {
  background-color: rgba(255, 255, 255, 0.15) !important;
}

.booking-detail-form .form-content,
.booking-detail-form .card-body {
  border: none !important;
}

.booking-detail-form ul,
.booking-detail-form li {
  border: none !important;
}

.booking-detail-form .card-body .justify-content-between {
  border-radius: var(--radius-sm, 8px) !important;
}

/* ---- Featured Sections ---- */
.featured_flights,
.featured_tours {
  border-radius: var(--radius-xl, 20px);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured_flights:hover,
.featured_tours:hover {
  transform: translateY(-2px);
}

/* ---- Form Box / Booking Area ---- */
.form-box {
  border-radius: var(--radius-lg, 16px);
  border: 1px solid var(--border-color, #e2e8f0);
  box-shadow: var(--shadow-sm);
}

/* ---- Invoice Styles ---- */
#invoice {
  border-radius: var(--radius-lg, 16px) !important;
  box-shadow: var(--shadow-md);
}

#invoice .table {
  border-radius: var(--radius-sm, 8px);
  overflow: hidden;
}

/* ---- Status Badges ---- */
.badge-paid {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  background: #dcfce7;
  color: #166534;
}

.badge-unpaid {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  background: #fef2f2;
  color: #991b1b;
}

.badge-pending {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  background: #fefce8;
  color: #854d0e;
}

/* ---- Pay Button Styling ---- */
a.pay, button.pay, input.pay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-md, 12px);
  font-weight: 600;
  font-size: 16px;
  color: #fff;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

a.pay:hover, button.pay:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(84, 105, 212, 0.3);
}

/* ---- Slick Carousel ---- */
.slick-next, .slick-prev {
  border-radius: 50% !important;
  box-shadow: var(--shadow-md) !important;
  border: 1px solid var(--border-color, #e2e8f0) !important;
}

/* ---- Newsletter Section ---- */
.newsletter-section .form-control {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  color: #fff;
}

.newsletter-section .form-control:focus {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.3);
  color: #fff;
}

.newsletter-section .form-floating label {
  color: #94a3b8;
}

.newsletter-section .btn-outline-primary {
  color: #93c5fd;
  border-color: rgba(147,197,253,0.3);
}

.newsletter-section .btn-outline-primary:hover {
  background: var(--theme-bg);
  border-color: var(--theme-bg);
  color: #fff;
}

/* ---- Sidebar (Mobile) ---- */
.sidebar-content {
  border-radius: var(--radius-lg, 16px) 0 0 var(--radius-lg, 16px);
}

.sidebar-nav-link {
  border-radius: var(--radius-sm, 8px) !important;
  transition: background 0.2s ease;
}

.sidebar-nav-link:hover {
  background: var(--surface-hover, #f1f5f9);
}

/* ---- Smooth Skeleton Loading ---- */
.loading_home {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md, 12px);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---- Filter Cards (Search Results) ---- */
.filter-card {
  border-radius: var(--radius-lg, 16px);
  border: 1px solid var(--border-color, #e2e8f0);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

/* ---- Back to Top Button ---- */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--theme-bg);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  border: none;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16,98,254,0.3);
}

/* ---- Responsive Tweaks ---- */
@media (max-width: 768px) {
  .card {
    border-radius: var(--radius-md, 12px);
  }

  .form-control, .form-select {
    font-size: 16px; /* prevent iOS zoom */
  }

  .main_search .nav.nav-tabs {
    padding: 8px 10px;
    gap: 2px;
  }
}

/* ---- Print Styles ---- */
@media print {
  .footer-area,
  .newsletter-section,
  .back-to-top,
  .no_print {
    display: none !important;
  }

  body {
    background: #fff !important;
  }
}
