@import url(
  'https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap'
);

/* ------------------------------------------------------------------
   Base / Global
   - scrollbar behavior and global variables
------------------------------------------------------------------ */

html,
body {
  overflow-y: scroll;
  /* Firefox */
  scrollbar-width: none;
  /* IE/Edge */
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  /* Chrome / Safari */
  display: none;
}

:root {
  /* Core colors */
  --navy: #001f3a;
  --blue: #007bff;
  --blue-hover: #005dc1;

  /* Layout/backgrounds */
  --sidebar-bg: #f7faff;
  --active-bg: #e2ecff;
  --page-bg: #f4f7fc;

  /* Icon & UI */
  --icon-hover-bg: #f1f5ff;
  --icon-active-bg: #e2ecff;

  /* Form / table */
  --field-border: #d5dbe6;
  --table-header-bg: #eef6ff;
  --table-header-border: #d8e0f0;
  --table-row-border: #e5e9f2;

  /* Page-specific helpers */
  --green-section-bg: #d6ffe9;
  --green-section-border: #a5f5cb;

  /* Admin-specific (kept here for convenience; can be split later) */
  --admin-navy: #0b2545;
  --admin-blue: #0b6efd;
  --admin-green: #16a34a;
}


/* ------------------------------------------------------------------
   Navigation / Sidebar
------------------------------------------------------------------ */

.nav-item {
  border-left: 3px solid transparent;
  border-radius: 6px;
  transition: 0.18s ease;
  color: #2d2d2d;
  display: flex;
  align-items: center;
}

.nav-item:hover {
  background: #f0f6fb;
}

.nav-item:hover svg {
  stroke: #1d4ed8;
}

.nav-item:hover .icon-box {
  background: var(--icon-hover-bg);
}

.icon-box {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition: 0.18s ease;
  flex-shrink: 0;
}

.active-link {
  background: var(--active-bg) !important;
  color: var(--blue) !important;
  border-left: 3px solid var(--blue);
  font-weight: 600;
}

.active-link .icon-box {
  background: var(--icon-active-bg) !important;
}

.active-link svg {
  stroke: #1d4ed8 !important;
}


/* ------------------------------------------------------------------
   Buttons
------------------------------------------------------------------ */

.btn-red {
  background: #ef4444;
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  font-weight: 600;
}

.btn-red:hover {
  background: #dc2626;
}

.submit-btn {
  background: var(--blue);
  color: #fff;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  border: none;
}

.submit-btn:hover {
  background: var(--blue-hover);
}


/* ------------------------------------------------------------------
   Forms
------------------------------------------------------------------ */

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--field-border);
  padding: 10px 12px;
  border-radius: 8px;
  margin-top: 6px;
  margin-bottom: 14px;
  background: white;
  outline: none;
}

textarea {
  resize: none;
}


/* ------------------------------------------------------------------
   Generic cards / sections
------------------------------------------------------------------ */

.green-section {
  background: linear-gradient(135deg, var(--blue), #22c55e);
  border: 1px solid var(--green-section-border);
  border-radius: 14px;
  padding: 28px;
}

.form-card {
  background: white;
  border: 1px solid var(--field-border);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 4px rgba(3, 15, 34, 0.06);
}


/* ------------------------------------------------------------------
   Tables
------------------------------------------------------------------ */

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

th {
  background: var(--table-header-bg);
  padding: 12px;
  border-bottom: 1px solid var(--table-header-border);
  text-align: left;
  color: var(--navy);
  font-weight: 600;
}

td {
  padding: 12px;
  border-bottom: 1px solid var(--table-row-border);
}

tr:hover td {
  background: #f8fbff;
}


/* ------------------------------------------------------------------
   Rooms page (page-specific helpers)
------------------------------------------------------------------ */

.rooms-container {
  background: #eaf3ff;
  border: 1px solid #bed7ff;
  padding: 24px;
  border-radius: 18px;
  box-shadow: 0 1px 4px rgba(3, 15, 34, 0.08);
}

.room-card {
  background: #d9fce8;
  border: 2px solid #9ae6b4;
  padding: 18px;
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
  color: #0b4220;
  transition: 0.18s ease;
}

.room-card:hover {
  background: #c4f7dc;
  border-color: #7edbb0;
}

.room-selected {
  background: #dceaff !important;
  border: 2px solid #007bff !important;
  color: var(--navy) !important;
  box-shadow: 0 0 6px rgba(0, 123, 255, 0.35);
}


/* ------------------------------------------------------------------
   Login page (page-specific)
------------------------------------------------------------------ */

#auth-wrapper {
  width: 100%;
  max-width: 850px;
  height: 500px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  position: relative;
  overflow: hidden;
  display: flex;
}

#slider {
  display: flex;
  width: 200%;
  height: 100%;
  transition: transform 0.6s ease-in-out;
}

.panel {
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 50px;
  gap: 16px;
  background: #fff;
}

#overlay {
  width: 50%;
  height: 100%;
  background: #002147;
  color: #fff;
  position: absolute;
  left: 50%;
  top: 0;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: transform 0.6s ease-in-out;
}

.input-box {
  border: 1px solid #d1d5db;
  padding: 12px;
  border-radius: 8px;
  outline: none;
  transition: 0.25s;
  width: 100%;
}

.input-box:focus {
  border-color: var(--blue);
  box-shadow: 0 0 3px #007bff50;
}

.mobile-panel {
  background: white;
  padding: 35px 25px;
  border-radius: 18px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  display: none;
  gap: 16px;
  margin-top: 20px;
}

.mobile-panel.active {
  display: flex;
  flex-direction: column;
}

/* Hide the mobile auth wrapper by default on larger screens
   so only the desktop `#auth-wrapper` is visible. It becomes
   visible inside the mobile media query below. */
#mobile-auth {
  display: none;
}

@media (max-width: 768px) {
  #auth-wrapper {
    display: none;
  }

  #mobile-auth {
    display: block;
  }
}


/* ------------------------------------------------------------------
   Admin dashboard (kept in this file for now)
   Consider splitting into `admin.css` if the admin app grows
------------------------------------------------------------------ */

.admin-sidebar {
  width: 280px;
  background: var(--sidebar-bg);
  border-right: 1px solid rgba(11, 37, 69, 0.06);
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 40;
}

.brand img {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  display: block;
  margin: 0 auto 10px;
}

.admin-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #1f2937;
  text-decoration: none;
  margin-bottom: 8px;
  border-left: 3px solid transparent;
  transition: all 0.16s ease;
}

.admin-nav a:hover {
  background: #eef6ff;
  color: var(--admin-blue);
}

.icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  flex-shrink: 0;
  transition: all 0.14s ease;
  box-shadow: 0 2px 6px rgba(11, 37, 69, 0.04);
}

.active-link {
  background: rgba(11, 110, 253, 0.06);
  color: var(--admin-blue);
  border-left: 3px solid var(--admin-blue);
  font-weight: 700;
}

/* end consolidated styles */


