/* ═══════════════════════════════════════════════════════════
   ADMIN PORTAL — GLOBAL DESIGN SYSTEM
   Matches the premium card style introduced in reports.php
═══════════════════════════════════════════════════════════ */

:root {
  --teal: #2ec1ac;
  --teal-hover: #279e8c;
  --sidebar-bg: #1a1d21;
  --sidebar-hover: rgba(255, 255, 255, 0.07);
  --sidebar-active: rgba(255, 255, 255, 0.12);
  --card-radius: 16px;
  --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
  --page-bg: #f5f6fa;
}

/* ── Base ──────────────────────────────────────────────── */
* {
  font-family: "Poppins", sans-serif;
}
.h-font {
  font-family: "Merienda", cursive;
}
body {
  background: var(--page-bg) !important;
}

/* ── Spinner chrome ────────────────────────────────────── */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
}

/* ── Cards — global override ───────────────────────────── */
.card {
  border-radius: var(--card-radius) !important;
  border: none !important;
  box-shadow: var(--card-shadow) !important;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
}
/* Cards that are just containers shouldn't hover-lift */
.card.no-lift:hover {
  transform: none;
  box-shadow: var(--card-shadow) !important;
}

/* ── Tables ────────────────────────────────────────────── */
.table {
  border-collapse: separate;
  border-spacing: 0;
}
.table thead th {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #888;
  background: #f8f9fb;
  border-bottom: 1px solid #eee;
  padding: 12px 14px;
}
.table tbody td {
  font-size: 13px;
  padding: 12px 14px;
  vertical-align: middle;
  border-bottom: 1px solid #f0f0f0;
  color: #444;
}
.table tbody tr:last-child td {
  border-bottom: none;
}
.table tbody tr:hover td {
  background: #fafbfd;
}

/* ── Scrollable table wrapper ──────────────────────────── */
.table-scroll {
  max-height: 58vh;
  overflow-y: auto;
}

/* ── Buttons ───────────────────────────────────────────── */
.custom-bg {
  background-color: var(--teal);
  border: 1px solid var(--teal);
  border-radius: 10px;
}
.custom-bg:hover {
  background-color: var(--teal-hover);
  border-color: var(--teal-hover);
}
.btn {
  border-radius: 10px !important;
}
.btn-dark {
  background: #1a1d21 !important;
  border-color: #1a1d21 !important;
}
.btn-dark:hover {
  background: #2d3139 !important;
  border-color: #2d3139 !important;
}

/* ── Form controls ─────────────────────────────────────── */
.form-control,
.form-select {
  border-radius: 10px !important;
  border: 1.5px solid #e9ecef !important;
  font-size: 14px;
  padding: 8px 12px;
}
.form-control:focus,
.form-select:focus {
  border-color: var(--teal) !important;
  box-shadow: 0 0 0 3px rgba(46, 193, 172, 0.15) !important;
}

/* ── Badges ────────────────────────────────────────────── */
.badge {
  border-radius: 8px !important;
  font-weight: 600;
}

/* ── Utility ───────────────────────────────────────────── */
.h-line {
  width: 150px;
  margin: 0 auto;
  height: 1.7px;
}

/* ── Alert toast ───────────────────────────────────────── */
.custom-alert {
  position: fixed;
  top: 80px;
  right: 25px;
  z-index: 1111;
}
/* ── Global Modal Modernization ────────────────────────── */
.modal-content {
  border-radius: 16px !important;
  border: none !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
  overflow: hidden;
}

.modal-header {
  border-bottom: 1px solid #f0f0f0 !important;
  padding: 20px 24px !important;
  background: #ffffff !important;
}

.modal-title {
  font-weight: 700 !important;
  font-size: 1.1rem !important;
  color: #1a1d21 !important;
  letter-spacing: 0.2px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.modal-body {
  padding: 24px !important;
}

.modal-footer {
  border-top: 1px solid #f0f0f0 !important;
  padding: 16px 24px !important;
}

/* Ensure admin modals use Poppins consistently */
.modal-content * {
  font-family: "Poppins", sans-serif !important;
}

/* ════════════════════════════════════════════
   SIDEBAR
════════════════════════════════════════════ */
#dashboard-menu {
  position: fixed;
  top: 64px;
  height: calc(100vh - 64px);
  z-index: 11;
  overflow-y: auto;
  background: var(--sidebar-bg) !important;
  border-top: none !important;
  padding-bottom: 30px;
}

/* Hide scrollbar but keep scroll working */
#dashboard-menu::-webkit-scrollbar {
  width: 0;
}

.sidebar-section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #555;
  padding: 20px 16px 6px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #adb5bd !important;
  font-size: 13px;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: 10px;
  margin: 2px 10px;
  text-decoration: none !important;
  transition:
    background 0.15s,
    color 0.15s;
}
.sidebar-link:hover {
  background: var(--sidebar-hover);
  color: #fff !important;
}
.sidebar-link.active {
  background: var(--sidebar-active);
  color: #fff !important;
}
.sidebar-link i {
  font-size: 16px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

/* Sub-menu (bookings) */
.sidebar-submenu {
  margin: 2px 10px 2px 20px;
  border-left: 2px solid rgba(255, 255, 255, 0.1);
  padding-left: 8px;
}
.sidebar-sublink {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #adb5bd !important;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none !important;
  transition:
    background 0.15s,
    color 0.15s;
  margin-bottom: 2px;
}
.sidebar-sublink:hover {
  background: var(--sidebar-hover);
  color: #fff !important;
}
.sidebar-sublink.active {
  background: var(--sidebar-active);
  color: #fff !important;
}
.sidebar-sublink i {
  font-size: 14px;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

/* Collapse toggle button */
.sidebar-toggle-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: calc(100% - 20px);
  background: none;
  border: none;
  color: #adb5bd;
  font-size: 13px;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: 10px;
  margin: 2px 10px;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
  text-align: left;
}
.sidebar-toggle-btn:hover {
  background: var(--sidebar-hover);
  color: #fff;
}
.sidebar-toggle-btn i.icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
}
.sidebar-toggle-btn i.arrow {
  margin-left: auto;
  font-size: 11px;
  transition: transform 0.2s;
}
.sidebar-toggle-btn[aria-expanded="true"] i.arrow {
  transform: rotate(180deg);
}

/* ════════════════════════════════════════════
   TOP HEADER BAR
════════════════════════════════════════════ */
#admin-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--sidebar-bg) !important;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}
#admin-topbar .brand {
  font-family: "Merienda", cursive;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-decoration: none;
}
#admin-topbar .logout-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 6px 18px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
}
#admin-topbar .logout-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ════════════════════════════════════════════
   MAIN CONTENT
════════════════════════════════════════════ */
#main-content {
  padding-top: 0;
}
#main-content .page-title {
  font-size: 22px;
  font-weight: 700;
  color: #1a1d21;
  letter-spacing: 0.3px;
}
#main-content .page-subtitle {
  font-size: 13px;
  color: #999;
}

/* ════════════════════════════════════════════
   STAT CARDS (Reports / Dashboard style)
════════════════════════════════════════════ */
.stat-card {
  border-radius: var(--card-radius) !important;
  border: none !important;
  box-shadow: var(--card-shadow) !important;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
}
.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.stat-number {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
}
.stat-label {
  font-size: 12px;
  color: #999;
  margin-top: 2px;
}

/* ════════════════════════════════════════════
   FEATURES & FACILITIES
════════════════════════════════════════════ */
.feature-category {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
  margin-bottom: 10px;
  font-weight: 700;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 20px;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #444;
}
.feature-item i {
  font-size: 16px;
  color: #1a1d21;
}

/* ════════════════════════════════════════════
   ROOM META
════════════════════════════════════════════ */
.room-meta-box {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #555;
}

/* ════════════════════════════════════════════
   SCROLLBAR STYLING
════════════════════════════════════════════ */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}

/* ── Pagination ────────────────────────────────────────── */
.pagination {
  gap: 6px;
}
.pagination .page-item .page-link {
  border-radius: 8px !important;
  color: #555;
  border: 1px solid #e9ecef;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
  background: #fff;
}
.pagination .page-item.active .page-link {
  background-color: var(--teal) !important;
  border-color: var(--teal) !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(46, 193, 172, 0.25);
}
.pagination .page-item .page-link:hover:not(.active) {
  background-color: #f8f9fa;
  border-color: #dee2e6;
  color: var(--teal);
}
.pagination .page-item.disabled .page-link {
  color: #ccc;
  background-color: #fafafa;
  border-color: #eee;
}

/* ── Specific Button Enhancements ───────────────────────── */
.btn-outline-primary {
  color: var(--teal);
  border-color: var(--teal);
}
.btn-outline-primary:hover {
  background-color: var(--teal);
  border-color: var(--teal);
  color: #fff;
}
.btn-sm {
  font-size: 12px;
  padding: 5px 12px;
}

/* ── Action Icons ───────────────────────────────────────── */
.action-btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.15s;
}

/* ════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════ */
@media screen and (max-width: 991px) {
  #dashboard-menu {
    height: auto;
    width: 100%;
    top: 0;
    position: relative;
  }
  #main-content {
    margin-top: 0;
  }
}
