/* --- Universal Styles --- */
html {
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: #222;
  background: url('../images/bg-hostel.jpg') no-repeat center center fixed;
  background-size: cover;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Layout Components --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* --- Navigation --- */
.navbar-top {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(90deg, #0a1857 0%, #3498db 100%);
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 2.5rem;
  box-shadow: 0 4px 18px rgba(44,62,80,0.13);
  border-bottom: 3px solid #f5f4f0;
}

.navbar-heading {
  font-size: 1.8rem;
  font-weight: 800;
  color: hsl(45, 50%, 98%);
  letter-spacing: 2.5px;
  white-space: nowrap;
  text-shadow: 0 2px 8px rgba(44,62,80,0.10);
  flex: 1 1 auto;
  margin-right: 1rem;
}

.navbar-top ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-top a {
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  padding: 0.5rem 1.3rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.navbar-top a:hover {
  background: rgba(255,255,255,0.2);
  box-shadow: 0 2px 8px rgba(255,214,0,0.2);
}

.mobile-menu-btn {
  flex: 0 0 auto;
  margin-left: auto;
  z-index: 110;
  display: none;
}

/* --- Hero Section --- */
.hero-header {
  width: 100%;
  margin-top: 70px; /* Account for fixed navbar */
  min-height: 300px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(120deg, #0a1857cc 0%, #3498dbcc 100%), 
              url('../images/Screenshot 2025-07-12 000511.png') center center/cover no-repeat;
  filter: brightness(0.7) blur(1.2px);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 4rem 2rem;
  color: white;
}

.hero-sub {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 2rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
  .hero-sub {
    font-size: 1.2rem;
  }
}

/* --- Booking Steps --- */
.booking-steps {
  background: rgba(255,255,255,0.97);
  border-radius: 32px;
  padding: 2rem 1.5rem;
  margin: -80px auto 3rem auto;
  max-width: 1200px;
  box-shadow: 0 28px 64px 0 rgba(31,38,135,0.28), 
              0 2px 24px 0 rgba(44,62,80,0.10);
  position: relative;
  z-index: 5;
}

.booking-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #111;
  text-align: center;
}

@media (max-width: 768px) {
  .booking-title {
    font-size: 1.5rem;
  }
  
  .booking-steps {
    padding: 1.5rem 1rem;
    margin: -60px auto 2rem auto;
  }
  
  .steps-flex {
    gap: 1rem;
    margin-bottom: 1rem;
  }
  
  .booking-btn-wrap {
    margin-top: 0.75rem;
  }
}

.steps-flex {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.step-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  width: 340px;
  min-width: 280px;
  position: relative;
  box-shadow: 0 4px 24px rgba(44,62,80,0.13);
  transition: transform 0.3s ease;
}

.step-card:hover {
  transform: translateY(-5px);
}

.step-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  filter: grayscale(0.3);
}

.step-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 1.3rem;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
  background: rgba(0,0,0,0.45);
  padding: 0.7rem 1.2rem;
  border-radius: 12px;
  text-align: center;
  width: 80%;
  max-width: 90%;
  box-sizing: border-box;
  pointer-events: none;
}
.booking-btn-wrap {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.booking-btn {
  background: #5a0202;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 1rem 3rem;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(52,152,219,0.13);
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.booking-btn:hover {
  background: #1a2a7a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(52,152,219,0.2);
}

/* --- Hostel Grid --- */
.hostel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.hostel-grid .card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.hostel-grid .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.hostel-grid .card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.hostel-grid .card h3 {
  margin: 1rem 1rem 0.5rem;
  color: #0a1857;
  font-size: 1.3rem;
}

.hostel-grid .card p {
  margin: 0 1rem 1rem;
  color: #555;
  font-size: 0.95rem;
}

.hostel-grid .card .action-btn {
  display: block;
  margin: 1rem;
  text-align: center;
  background: #3498db;
  color: white;
  padding: 0.7rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s;
}

.hostel-grid .card .action-btn:hover {
  background: #2980b9;
}

/* --- Forms --- */
.form-card {
  max-width: 400px;
  margin: 5rem auto;
  padding: 2.5rem 2rem;
  background: white;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(31,38,135,0.13);
  position: relative;
}

.input-group {
  margin-bottom: 1.2rem;
}

.input-group input[type="email"],
.input-group input[type="password"],
.input-group input[type="text"],
.input-group select {
  width: 100%;
  padding: 0.9rem 1rem;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #d0eaf7;
  background: #f4f8fb;
}

.password-group {
  position: relative;
}

#togglePassword, #toggleConfirmPassword {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #3498db;
  font-size: 1.2rem;
}

#togglePassword img, #toggleConfirmPassword img {
  width: 22px;
  height: 22px;
}

.input-group input[type="tel"],
.input-group textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #d0eaf7;
  background: #f4f8fb;
  font-family: inherit;
  box-sizing: border-box;
}
.input-group textarea {
  min-height: 44px;
  max-height: 180px;
  resize: vertical;
}

/* --- Dashboard Styles --- */
.dashboard-container {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 220px;
  background: #222e3c;
  color: white;
  padding: 2rem 1rem;
  position: fixed;
  height: 100vh;
  top: 0;
  left: 0;
  overflow-y: auto;
}

.sidebar h2 {
  color: white;
  margin-bottom: 2rem;
  font-size: 1.5rem;
}

.sidebar nav a {
  color: #bfc9d1;
  text-decoration: none;
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  transition: all 0.2s;
}

.sidebar nav a:hover,
.sidebar nav a.active {
  background: #30415d;
  color: white;
}

.main-content {
  flex: 1;
  padding: 2rem;
  margin-left: 220px;
  min-height: 100vh;
  background: #f4f8fb;
}

.dashboard-section {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.dashboard-section h2 {
  margin-top: 0;
  color: #3498db;
  font-size: 1.5rem;
}

/* --- Tables --- */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

th, td {
  padding: 0.75rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid #eee;
}

th {
  background: #f4f8fb;
  font-weight: 600;
}

/* --- Badges --- */
.badge {
  padding: 0.3em 0.8em;
  border-radius: 12px;
  font-size: 0.9em;
  display: inline-block;
}

.badge.confirmed {
  background: #28a745;
  color: white;
}

.badge.pending {
  background: #ffc107;
  color: #222;
}

.badge.cancelled {
  background: #dc3545;
  color: white;
}

/* Booking Status Badges */
.badge.pending { background: #f7ca18; color: #fff; padding: 0.2em 0.7em; border-radius: 12px; font-size: 0.95em; }
.badge.confirmed { background: #27ae60; color: #fff; padding: 0.2em 0.7em; border-radius: 12px; font-size: 0.95em; }
.badge.cancelled { background: #e74c3c; color: #fff; padding: 0.2em 0.7em; border-radius: 12px; font-size: 0.95em; }

/* --- Buttons --- */
.action-btn {
  background: #30415d;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0.4em 1em;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 0.9rem;
}

.action-btn:hover {
  background: #222e3c;
}

/* --- Modals --- */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: white;
  border-radius: 10px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}

/* --- Footer --- */
.site-footer {
  width: 100%;
  background: linear-gradient(90deg, #0a1857 0%, #3498db 100%);
  color: white;
  padding: 1.5rem 1rem;
  margin-top: auto;
  text-align: center;
  box-sizing: border-box;
}

.footer-copy {
  font-size: 0.9rem;
  color: #e4eefc;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .site-footer {
    padding: 1rem 0.5rem;
  }
  
  .footer-copy {
    font-size: 0.8rem;
  }
}

/* --- Responsive Styles --- */
@media (max-width: 1200px) {
  .container, .hero-content, .booking-steps {
    max-width: 98vw;
    padding-left: 1vw;
    padding-right: 1vw;
  }
}

@media (max-width: 900px) {
  .navbar-top {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    text-align: left !important;
    width: 100%;
  }
  .navbar-heading {
    text-align: left !important;
    margin-right: 1rem;
  }
  .mobile-menu-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-left: auto;
  }
}
@media (max-width: 600px) {
  .navbar-top {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    text-align: left !important;
    width: 100%;
  }
  .navbar-heading {
    text-align: left !important;
    margin-right: 1rem;
  }
  .mobile-menu-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-left: auto;
  }
}

/* --- Login & Register Page Specific Styles --- */
.login-bg, .register-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(120deg, #0a1857cc 0%, #3498dbcc 100%), 
              url('../images/bg-hostel.jpg') center center/cover no-repeat;
  filter: brightness(0.7) blur(1.2px);
  z-index: 0;
}

.form-card {
  max-width: 400px;
  margin: 5rem auto;
  padding: 2.5rem 2rem;
  background: white;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(31,38,135,0.13);
  position: relative;
  z-index: 2;
}

.login-card {
  animation: fadeIn 0.6s ease-out;
}

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

.login-logo, .register-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.login-logo img, .register-logo img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(52,152,219,0.2);
}

.form-card h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #3498db;
}

.login-sub, .register-sub {
  text-align: center;
  color: #555;
  margin-bottom: 1.5rem;
  font-size: 1.08rem;
}

.input-group {
  margin-bottom: 1.2rem;
}

.input-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #444;
}

.input-group input[type="email"],
.input-group input[type="password"],
.input-group input[type="text"],
.input-group select {
  width: 100%;
  padding: 0.9rem 1rem;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #d0eaf7;
  background: #f4f8fb;
  transition: all 0.2s;
}

.input-group input:focus,
.input-group select:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52,152,219,0.2);
}

.password-group {
  position: relative;
}

#togglePassword {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #3498db;
  font-size: 1.2rem;
}

.forgot-link {
  text-align: right;
  margin-bottom: 1.5rem;
}

.forgot-link a {
  color: #3498db;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.forgot-link a:hover {
  text-decoration: underline;
}

#login-message, #register-message {
  margin-bottom: 1rem;
  padding: 0.8rem;
  border-radius: 8px;
  text-align: center;
  font-size: 0.95rem;
}

#login-message.error, #register-message.error {
  background-color: #fee2e2;
  color: #dc3545;
}

#login-message.success, #register-message.success {
  background-color: #d1fae5;
  color: #28a745;
}

.form-card button[type="submit"] {
  width: 100%;
  background: linear-gradient(90deg, #3498db 0%, #6dd5fa 100%);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 1rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(52,152,219,0.13);
  margin-bottom: 1.5rem;
  transition: all 0.2s;
}

.form-card button[type="submit"]:hover {
  background: linear-gradient(90deg, #6dd5fa 0%, #3498db 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(52,152,219,0.2);
}

.login-link, .register-link {
  text-align: center;
  font-size: 1rem;
  color: #555;
}

.login-link a, .register-link a {
  color: #3498db;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.login-link a:hover, .register-link a:hover {
  text-decoration: underline;
}

/* Campus Selection Styles (Register Page) */
.campus-selection {
  text-align: center;
}

.campus-btn-group {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 2rem;
}

.campus-btn {
  background: white;
  border: 2px solid #e0e7ff;
  border-radius: 16px;
  padding: 1.5rem 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  width: 100%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.campus-btn:hover {
  border-color: #3498db;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(52,152,219,0.15);
  background: #f8f9ff;
}

.campus-btn-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.campus-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.campus-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.campus-info strong {
  font-size: 1.3rem;
  color: #0a1857;
  margin-bottom: 0.3rem;
  font-weight: 700;
}

.campus-info span {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.4;
}

.campus-display {
  background: #f8f9ff;
  border: 1px solid #e0e7ff;
  border-radius: 8px;
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
  text-align: center;
}

.campus-display p {
  margin: 0;
  color: #0a1857;
  font-size: 0.95rem;
}

.campus-display strong {
  color: #3498db;
}

/* Hide/Show Transitions */
.hide {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.show {
  display: block;
  opacity: 1;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .form-card {
    margin: 3rem auto;
    padding: 2rem 1.5rem;
    width: 90%;
  }
  
  .campus-btn-group {
    gap: 1rem;
  }
  
  .campus-btn {
    padding: 1.2rem 0.8rem;
  }
}

@media (max-width: 480px) {
  .form-card {
    padding: 1.5rem 1rem;
    margin: 2rem auto;
  }
  
  .form-card h2 {
    font-size: 1.8rem;
  }
  
  .login-logo img, .register-logo img {
    width: 70px;
    height: 70px;
  }
  
  .input-group input[type="email"],
  .input-group input[type="password"],
  .input-group input[type="text"],
  .input-group select {
    padding: 0.8rem;
  }
}

/* Admin Dashboard Stat Cards and Chart */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(44,62,80,0.07);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: box-shadow 0.2s;
}
.stat-card h3 {
  font-size: 2.2rem;
  margin: 0 0 0.5rem 0;
  color: #2d3e50;
}
.stat-card p {
  color: #888;
  font-size: 1rem;
  margin: 0;
}
.stat-card:hover {
  box-shadow: 0 4px 24px rgba(44,62,80,0.13);
}
.chart-container {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(44,62,80,0.07);
  padding: 1.5rem;
  margin-bottom: 2rem;
}
@media (max-width: 700px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .chart-container {
    padding: 1rem;
  }
}

/* Modal Styles for Admin Dashboard */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background: rgba(44,62,80,0.25);
}
.modal-content {
  background: #fff;
  margin: 5% auto;
  padding: 2rem 2.5rem;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 4px 32px rgba(44,62,80,0.18);
  position: relative;
}
.close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  color: #888;
  cursor: pointer;
  z-index: 1001;
  background: none;
  border: none;
  padding: 0.5rem;
  line-height: 1;
  transition: color 0.2s;
}

.close-modal:hover {
  color: #e74c3c;
}
@media (max-width: 500px) {
  .modal-content {
    padding: 1rem;
    max-width: 95vw;
  }
}

/* Hostel Management Table */
#hostel-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}
#hostel-table th, #hostel-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #eee;
  text-align: left;
}
#hostel-table th {
  background: #f5f6fa;
  font-weight: 600;
}
#hostel-table tr:hover {
  background: #f9fafb;
}
#add-hostel-btn {
  margin-bottom: 1rem;
}

/* --- Tenant Dashboard & Modal Styles (added/updated) --- */
.dashboard-container {
  display: flex;
  min-height: 100vh;
  width: 100%;
}
.sidebar {
  width: 220px;
  background: #222e3c;
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 2rem 1rem;
  min-height: 100vh;
}
.sidebar h2 { color: #fff; margin-bottom: 2rem; }
.sidebar nav a {
  color: #bfc9d1;
  text-decoration: none;
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  transition: background 0.2s;
}
.sidebar nav a.active, .sidebar nav a:hover { background: #30415d; color: #fff; }
.main-content {
  flex: 1;
  padding: 2rem 3vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.dashboard-section {
  width: 100%;
  max-width: 700px;
  display: none;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px #0001;
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.dashboard-section.hide { display: none !important; }
.dashboard-section.active { display: block !important; }
.dashboard-section h2 { margin-top: 0; }
.room-types-list {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.room-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px #0001;
  width: 220px;
  margin-bottom: 2rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.room-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}
.room-info {
  padding: 1rem;
  text-align: center;
}
.room-price {
  font-size: 1.2em;
  font-weight: bold;
  color: #28a745;
}
.badge {
  padding: 0.3em 0.8em;
  border-radius: 12px;
  font-size: 0.9em;
  color: #fff;
}
.badge.confirmed { background: #28a745; }
.badge.pending { background: #ffc107; color: #222; }
.badge.cancelled { background: #dc3545; }
.action-btn {
  background: #30415d;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.4em 1em;
  cursor: pointer;
  transition: background 0.2s;
}
.action-btn:hover { background: #222e3c; }
.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  background-color: #fff;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  padding: 20px;
  border-radius: 8px;
  display: none;
  min-width: 320px;
  max-width: 95vw;
}
.modal.show { display: block; }
.modal-content { text-align: center; }
.hide { display: none !important; }
body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  display: none;
}
body.modal-active::after { display: block; }
@media (max-width: 900px) {
  .dashboard-container { flex-direction: column; }
  .sidebar { width: 100%; flex-direction: row; min-height: unset; padding: 1rem; }
  .sidebar nav { display: flex; gap: 1rem; }
  .main-content { padding: 1rem; align-items: center; }
  .dashboard-section { max-width: 98vw; }
  .room-card { width: 98vw; min-width: 120px; max-width: 98vw; }
}
@media (max-width: 600px) {
  .dashboard-section { padding: 1rem; }
  .room-card { width: 98vw; min-width: 120px; max-width: 98vw; }
  .modal { min-width: 90vw; padding: 1.2rem 0.5rem 1rem 0.5rem; }
}

/* --- Modern Tenant Dashboard Style Polish --- */
/* Sidebar */
.sidebar {
  width: 220px;
  background: linear-gradient(135deg, #0a1857 60%, #3498db 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 2rem 1rem;
  min-height: 100vh;
  box-shadow: 2px 0 16px rgba(44,62,80,0.08);
  border-top-right-radius: 24px;
  border-bottom-right-radius: 24px;
  transition: background 0.3s;
}
.sidebar h2 {
  color: #fff;
  margin-bottom: 2rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  font-size: 1.5rem;
  text-shadow: 0 2px 8px #0002;
}
.sidebar nav a {
  color: #e4eefc;
  text-decoration: none;
  display: block;
  padding: 0.75rem 1.2rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.sidebar nav a.active, .sidebar nav a:hover {
  background: #fff;
  color: #3498db;
  box-shadow: 0 2px 8px #3498db22;
}
.sidebar nav a.has-notifications {
  position: relative;
  font-weight: bold;
  color: #e67e22 !important;
}
.sidebar nav a.has-notifications::after {
  content: '';
  position: absolute;
  top: 10px;
  right: 10px;
  width: 10px;
  height: 10px;
  background: #e67e22;
  border-radius: 50%;
  box-shadow: 0 0 4px #fff;
  display: inline-block;
}

.sidebar nav a {
  color: #bfc9d1;
  text-decoration: none;
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.sidebar nav a.active, .sidebar nav a:hover {
  background: #30415d;
  color: white;
  transform: translateX(5px);
}

/* Main Content & Sections */
.main-content {
  flex: 1;
  padding: 2.5rem 4vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: #f4f8fb;
  min-height: 100vh;
}
.dashboard-section {
  width: 100%;
  max-width: 700px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(44,62,80,0.10);
  padding: 2rem 1.5rem;
  margin-bottom: 2.5rem;
  transition: box-shadow 0.2s;
}
.dashboard-section h2 {
  margin-top: 0;
  color: #3498db;
  font-weight: 700;
  letter-spacing: 1px;
}

/* Room Cards */
.room-types-list {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.room-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px #3498db22;
  width: 300px;
  margin-bottom: 2rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.2s, transform 0.2s;
}
.room-card:hover {
  box-shadow: 0 8px 32px #3498db33;
  transform: translateY(-4px) scale(1.03);
}
.room-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
}
.room-info {
  padding: 1.2rem 1rem 1.5rem 1rem;
  text-align: center;
}
.room-price {
  font-size: 1.2em;
  font-weight: bold;
  color: #27ae60;
  margin-bottom: 0.7rem;
}
.action-btn {
  background: linear-gradient(90deg, #3498db 0%, #6dd5fa 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.7em 1.5em;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px #3498db22;
  margin-top: 0.5rem;
  transition: background 0.2s, transform 0.2s;
}
.action-btn:hover {
  background: linear-gradient(90deg, #6dd5fa 0%, #3498db 100%);
  transform: translateY(-2px) scale(1.04);
}

/* Tables (Bookings & Payments) */
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px #3498db11;
  margin-top: 1rem;
}
table th, table td {
  padding: 0.85rem 0.7rem;
  text-align: left;
  border-bottom: 1px solid #eaf6fb;
  color: #333;
}
table th {
  background: #f4f8fb;
  font-weight: 700;
  color: #3498db;
  letter-spacing: 0.5px;
}
table tbody tr:nth-child(even) {
  background: #f9fafb;
}
table tbody tr:hover {
  background: #eaf6fb;
}

/* Badges */
.badge {
  padding: 0.3em 0.8em;
  border-radius: 12px;
  font-size: 0.95em;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 1px 4px #3498db22;
}
.badge.confirmed { background: #27ae60; }
.badge.pending { background: #f7ca18; color: #222; }
.badge.cancelled { background: #e74c3c; }

/* Profile Update Status Styles */
.update-status {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
}

.update-status p {
  margin: 0.5rem 0;
}

.status-pending {
  color: #f7ca18;
  font-weight: 600;
}

.status-approved {
  color: #27ae60;
  font-weight: 600;
}

.status-rejected {
  color: #e74c3c;
  font-weight: 600;
}

.profile-info {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

/* Modals */
.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  background: #fff;
  box-shadow: 0 8px 32px rgba(44,62,80,0.18);
  padding: 2rem 2.5rem;
  border-radius: 16px;
  display: none;
  min-width: 320px;
  max-width: 95vw;
}
.modal.show {
  display: block !important;
  opacity: 1 !important;
  transform: translate(-50%, -50%) !important;
}
.modal-content { text-align: center; }
.hide { display: none !important; }
body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(44,62,80,0.25);
  z-index: 999;
  display: none;
}
body.modal-active::after { display: block; }

/* Responsive */
/* --- Mobile-First Responsive Redesign for Tenant Dashboard --- */
@media (max-width: 900px) {
  .dashboard-container { flex-direction: column; }
  .sidebar { display: none !important; }
  .main-content { padding: 0.5rem 0.5rem 0 0.5rem; margin-left: 0; }
  .dashboard-section { max-width: 100vw; padding: 0.7rem 0.2rem 0.7rem 0.2rem; margin-bottom: 1rem; border-radius: 8px; }
  .profile-section {
    position: relative;
    width: 100% !important;
    max-width: 420px !important;
    margin: 0 auto !important;
    box-sizing: border-box;
    padding: 0.5rem !important;
  }
  .profile-grid {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    width: 100% !important;
    box-sizing: border-box;
    margin: 0 auto !important;
  }
  .profile-field {
    width: 96%;
    max-width: 96%;
    min-width: 0 !important;
    box-sizing: border-box;
    margin: 0.2rem auto 0.5rem auto;
    padding: 0.6rem 0.7rem !important;
    border-radius: 8px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: 0 1px 4px #0001;
  }
  .field-label {
    font-size: 0.92rem;
    color: #495057;
    font-weight: 600;
    margin-bottom: 0.2rem;
  }
  .field-value {
    font-size: 0.9rem;
    color: #333;
    overflow-wrap: break-word;
    word-break: break-word;
    width: 100%;
  }
  .responsive-table-wrapper { width: 100vw !important; max-width: 100vw !important; overflow-x: auto !important; }
  .responsive-table-wrapper table { min-width: 400px !important; width: 100% !important; display: table !important; }
  .responsive-table-wrapper th, .responsive-table-wrapper td { font-size: 0.95rem; padding: 0.5rem 0.3rem; }
  .responsive-table-wrapper { display: block !important; }
}
@media (max-width: 768px) {
  html, body { font-size: 14px; }
  .dashboard-section { padding: 0.7rem 0.2rem 0.7rem 0.2rem; margin-bottom: 0.7rem; border-radius: 8px; }
  .dashboard-section h2 { font-size: 1.1rem; margin-bottom: 0.7rem; }
  .stat-card { padding: 0.7rem 0.5rem; font-size: 0.95rem; border-radius: 8px; }
  .stat-number { font-size: 1.2rem; }
  .room-types-list { gap: 0.7rem; }
  .room-card { width: 98vw; min-width: 120px; max-width: 98vw; border-radius: 8px; box-shadow: 0 1px 4px #0001; margin-bottom: 1rem; }
  .room-img { height: 80px; }
  .room-info { padding: 0.7rem; }
  .room-price { font-size: 1rem; }
  .action-btn { font-size: 0.9rem; padding: 0.5em 1em; border-radius: 6px; min-width: 36px; min-height: 36px; }
  .modal-content { padding: 1rem; border-radius: 8px; }
  .profile-section { padding: 1rem; border-radius: 8px; }
  .profile-grid { gap: 0.7rem; }
  .profile-field { padding: 0.7rem; border-radius: 6px; }
  .field-label { font-size: 0.95rem; }
  .field-value { font-size: 0.92rem; }
  .responsive-table-wrapper { padding: 0; }
  .responsive-table-wrapper table { min-width: 420px; font-size: 0.95rem; }
  .responsive-table-wrapper th, .responsive-table-wrapper td { padding: 0.5rem 0.3rem; }
}
@media (max-width: 600px) {
  html, body { font-size: 13px; }
  .dashboard-section { padding: 0.5rem 0.1rem 0.5rem 0.1rem; border-radius: 6px; }
  .room-card { width: 99vw; min-width: 100px; max-width: 99vw; border-radius: 6px; }
  .room-img { height: 60px; }
  .room-info { padding: 0.5rem; }
  .stat-card { padding: 0.5rem 0.3rem; font-size: 0.9rem; border-radius: 6px; }
  .stat-number { font-size: 1rem; }
  .action-btn { font-size: 0.85rem; padding: 0.4em 0.7em; border-radius: 5px; min-width: 32px; min-height: 32px; }
  .modal-content { padding: 0.7rem; border-radius: 6px; }
  .profile-section { padding: 0.7rem; border-radius: 6px; }
  .profile-grid { gap: 0.5rem; }
  .profile-field { padding: 0.5rem; border-radius: 4px; }
  .field-label { font-size: 0.9rem; }
  .field-value { font-size: 0.88rem; }
  .responsive-table-wrapper table { min-width: 320px; font-size: 0.9rem; }
  .responsive-table-wrapper th, .responsive-table-wrapper td { padding: 0.3rem 0.2rem; }
}
@media (max-width: 480px) {
  html, body { font-size: 12px; }
  .dashboard-section { padding: 0.3rem 0.05rem 0.3rem 0.05rem; border-radius: 4px; }
  .room-card { width: 100vw; min-width: 80px; max-width: 100vw; border-radius: 4px; }
  .room-img { height: 40px; }
  .room-info { padding: 0.3rem; }
  .stat-card { padding: 0.3rem 0.1rem; font-size: 0.85rem; border-radius: 4px; }
  .stat-number { font-size: 0.9rem; }
  .action-btn { font-size: 0.8rem; padding: 0.3em 0.5em; border-radius: 4px; min-width: 28px; min-height: 28px; }
  .modal-content { padding: 0.4rem; border-radius: 4px; }
  .profile-section { padding: 0.4rem; border-radius: 4px; }
  .profile-grid { gap: 0.3rem; }
  .profile-field { padding: 0.3rem; border-radius: 2px; }
  .field-label { font-size: 0.85rem; }
  .field-value { font-size: 0.82rem; }
  .responsive-table-wrapper table { min-width: 220px; font-size: 0.85rem; }
  .responsive-table-wrapper th, .responsive-table-wrapper td { padding: 0.2rem 0.1rem; }
}
@media (max-width: 400px) {
  html, body { font-size: 11px; }
  .dashboard-section { padding: 0.1rem 0.01rem 0.1rem 0.01rem; border-radius: 2px; }
  .room-card { width: 100vw; min-width: 60px; max-width: 100vw; border-radius: 2px; }
  .room-img { height: 30px; }
  .room-info { padding: 0.1rem; }
  .stat-card { padding: 0.1rem 0.01rem; font-size: 0.8rem; border-radius: 2px; }
  .stat-number { font-size: 0.7rem; }
  .action-btn { font-size: 0.7rem; padding: 0.2em 0.3em; border-radius: 2px; min-width: 20px; min-height: 20px; }
  .modal-content { padding: 0.2rem; border-radius: 2px; }
  .profile-section { padding: 0.2rem; border-radius: 2px; }
  .profile-grid { gap: 0.1rem; }
  .profile-field { padding: 0.1rem; border-radius: 1px; }
  .field-label { font-size: 0.7rem; }
  .field-value { font-size: 0.7rem; }
  .responsive-table-wrapper table { min-width: 120px; font-size: 0.7rem; }
  .responsive-table-wrapper th, .responsive-table-wrapper td { padding: 0.1rem 0.05rem; }
}

/* Smooth fade-in animation for modals and cards */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.toast {
  min-width: 220px;
  max-width: 350px;
  background: #fff;
  color: #222;
  border-radius: 8px;
  box-shadow: 0 2px 8px #0002;
  padding: 1rem 1.5rem;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  border-left: 6px solid #3498db;
  animation: fadeIn 0.4s;
}
.toast.success { border-left-color: #27ae60; }
.toast.error { border-left-color: #e74c3c; }
.toast.info { border-left-color: #3498db; }
.toast .toast-close {
  margin-left: auto;
  background: none;
  border: none;
  font-size: 1.2rem;
  color: #888;
  cursor: pointer;
}

/* Mobile-First Responsive Design */
/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1500;
  background: #3498db;
  border: none;
  border-radius: 8px;
  padding: 0.75rem;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.8);
  z-index: 1400;
}
.mobile-nav-overlay.active {
  display: block;
}

.mobile-nav-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  background: #222e3c;
  color: white;
  padding: 2rem 1.5rem;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.mobile-nav-overlay.active .mobile-nav-content {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #444;
}

.mobile-nav-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: white;
}

.close-mobile-menu {
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.close-mobile-menu:hover {
  background: rgba(255,255,255,0.1);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-link {
  display: block;
  padding: 1rem 1.2rem;
  color: #bfc9d1;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-size: 1.1rem;
  font-weight: 500;
}

.mobile-nav-link.active,
.mobile-nav-link:hover {
  background: #3498db;
  color: white;
  transform: translateX(8px);
}

/* Touch-Friendly UI Improvements */
.action-btn {
  min-height: 44px; /* iOS minimum touch target */
  min-width: 44px;
  padding: 0.75rem 1.2rem;
  font-size: 1rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Mobile-Optimized Tables */
.mobile-table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Ensure content is clear and readable */
.dashboard-section {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.dashboard-section h2 {
  color: #333;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

@media (max-width: 768px) {
  .dashboard-section {
    padding: 1.2rem;
    margin-bottom: 1.5rem;
  }
  
  .dashboard-section h2 {
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
  }
}

/* Card-based layout for mobile tables */
@media (max-width: 768px) {
  table {
    display: none; /* Hide tables on mobile */
  }
  
  .mobile-card-view {
    display: block;
  }
  
  .mobile-card {
    background: white;
    border-radius: 12px;
    padding: 1.2rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-left: 4px solid #3498db;
  }
  
  .mobile-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
  }
  
  .mobile-card-title {
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
  }
  
  .mobile-card-status {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
  }
  
  .mobile-card-content {
    display: grid;
    gap: 0.5rem;
  }
  
  .mobile-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
  }
  
  .mobile-card-label {
    font-weight: 500;
    color: #666;
    font-size: 0.9rem;
  }
  
  .mobile-card-value {
    color: #333;
    font-size: 0.95rem;
  }
  
  .mobile-card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
  }
  
  .mobile-card-actions .action-btn {
    flex: 1;
    text-align: center;
  }
}

/* Responsive Dashboard Sections */
@media (max-width: 768px) {
  .dashboard-container {
    flex-direction: column;
  }
  
  .sidebar {
    display: none !important; /* Hide desktop sidebar on mobile */
  }
  
  .main-content {
    margin-left: 0 !important;
    padding: 1rem;
    padding-top: 5rem; /* Space for mobile menu button */
    background: #f4f8fb;
    min-height: 100vh;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .mobile-nav-overlay {
    display:none;
  }
  
  /* Quick action cards mobile optimization */
  .quick-actions {
    flex-direction: column;
    gap: 1rem;
  }
  
  .quick-card {
    min-width: unset;
    width: 100%;
  }
  
  /* Stats grid mobile layout */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .stat-card {
    padding: 1.2rem;
  }
  
  .stat-card h3 {
    font-size: 1.5rem;
  }
  
  /* Chart container mobile */
  .chart-container {
    height: 300px;
    margin: 1rem 0;
  }
  
  /* Modal mobile optimization */
  .modal-content {
    width: 95%;
    max-width: none;
    margin: 1rem;
    padding: 1.5rem;
    border-radius: 12px;
  }
  
  /* Toast notifications mobile */
  #toast-container {
    top: 1rem;
    right: 1rem;
    left: 1rem;
  }
  
  .toast {
    min-width: unset;
    width: 100%;
  }
  
  /* Form inputs mobile optimization */
  input, select, textarea {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 0.8rem;
    border-radius: 8px;
  }
  
  /* Button groups mobile */
  .button-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .button-group .action-btn {
    width: 100%;
  }
}

/* Tablet optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
  .sidebar {
    width: 200px;
  }
  
  .main-content {
    margin-left: 200px;
    padding: 1.5rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .quick-actions {
    flex-wrap: wrap;
  }
  
  .quick-card {
    min-width: 180px;
  }
}

/* Large screen optimizations */
@media (min-width: 1025px) {
  .sidebar {
    width: 250px;
  }
  
  .main-content {
    margin-left: 250px;
    padding: 2rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .action-btn, .mobile-menu-btn, .close-mobile-menu {
    border-radius: 12px;
  }
  
  .mobile-card {
    border-radius: 16px;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .mobile-card {
    background: #2c3e50;
    color: white;
  }
  
  .mobile-card-label {
    color: #bdc3c7;
  }
  
  .mobile-card-value {
    color: white;
  }
  
  .mobile-card-header {
    border-bottom-color: #34495e;
  }
  
  .mobile-card-actions {
    border-top-color: #34495e;
  }
}

/* --- About Us Section --- */
.about-us-section {
  background: rgba(255,255,255,0.98);
  border-radius: 28px;
  box-shadow: 0 8px 32px 0 rgba(31,38,135,0.18), 0 1.5px 12px 0 rgba(44,62,80,0.08);
  margin: 2.5rem auto 2rem auto;
  padding: 2.5rem 2rem 2rem 2rem;
  max-width: 900px;
  text-align: center;
  position: relative;
  z-index: 3;
}
.about-us-section h2 {
  font-size: 2.1rem;
  font-weight: 800;
  color: #0a1857;
  margin-bottom: 1.2rem;
  letter-spacing: 1.5px;
}
.about-us-section p {
  font-size: 1.15rem;
  color: #222;
  margin-bottom: 1.1rem;
  line-height: 1.7;
}
.about-details {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  align-items: center;
}
.about-details p {
  background: #f5f8fa;
  border-left: 5px solid #3498db;
  border-radius: 10px;
  padding: 1rem 1.5rem;
  font-size: 1.08rem;
  width: 100%;
  max-width: 600px;
  box-shadow: 0 2px 8px rgba(44,62,80,0.06);
  text-align: left;
}
.about-details strong {
  color: #0a1857;
  font-weight: 700;
}
@media (max-width: 700px) {
  .about-us-section {
    padding: 1.5rem 0.7rem 1.2rem 0.7rem;
    margin: 1.5rem 0.5rem 1.2rem 0.5rem;
  }
  .about-us-section h2 {
    font-size: 1.4rem;
  }
  .about-details p {
    font-size: 0.98rem;
    padding: 0.8rem 0.7rem;
  }
}
@media (max-width: 400px) {
  .about-us-section {
    padding: 0.7rem 0.2rem 0.7rem 0.2rem;
  }
  .about-details p {
    font-size: 0.92rem;
    padding: 0.6rem 0.3rem;
  }
}

/* Admin Dashboard Table Styles */
#pending-bookings-table,
#profile-requests-table,
#tour-requests-table,
#hostel-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(52, 152, 219, 0.1);
  margin: 1rem 0;
  font-size: 0.95rem;
}

#pending-bookings-table th,
#pending-bookings-table td,
#profile-requests-table th,
#profile-requests-table td,
#tour-requests-table th,
#tour-requests-table td,
#hostel-table th,
#hostel-table td {
  padding: 1rem 0.8rem;
  text-align: left;
  border-bottom: 1px solid #e8f4fd;
  vertical-align: middle;
}

#pending-bookings-table th,
#profile-requests-table th,
#tour-requests-table th,
#hostel-table th {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 1.2rem 0.8rem;
}

#pending-bookings-table tbody tr:nth-child(even),
#profile-requests-table tbody tr:nth-child(even),
#tour-requests-table tbody tr:nth-child(even),
#hostel-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

#pending-bookings-table tbody tr:hover,
#profile-requests-table tbody tr:hover,
#tour-requests-table tbody tr:hover,
#hostel-table tbody tr:hover {
  background: #e8f4fd;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.1);
  transition: all 0.2s ease;
}

#pending-bookings-table tbody tr:last-child td,
#profile-requests-table tbody tr:last-child td,
#tour-requests-table tbody tr:last-child td,
#hostel-table tbody tr:last-child td {
  border-bottom: none;
}

/* Admin Dashboard Badge Styles */
#pending-bookings-table .badge,
#profile-requests-table .badge,
#tour-requests-table .badge {
  padding: 0.4em 0.8em;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Admin Dashboard Action Button Styles */
.btn-view,
.btn-approve,
.btn-reject {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  margin: 0 0.2rem;
  min-width: 80px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-view {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
}

.btn-view:hover {
  background: linear-gradient(135deg, #2980b9, #1f5f8b);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.btn-approve {
  background: linear-gradient(135deg, #27ae60, #229954);
  color: white;
}

.btn-approve:hover {
  background: linear-gradient(135deg, #229954, #1e8449);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(39, 174, 96, 0.3);
}

.btn-reject {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
}

.btn-reject:hover {
  background: linear-gradient(135deg, #c0392b, #a93226);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(231, 76, 60, 0.3);
}

/* Button group styling for action buttons */
.action-buttons {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
}

/* Responsive button adjustments */
@media (max-width: 768px) {
  .btn-view,
  .btn-approve,
  .btn-reject {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    min-width: 70px;
    margin: 0.1rem;
  }
  
  .action-buttons {
    gap: 0.3rem;
  }
}

/* Disabled button states */
.btn-view:disabled,
.btn-approve:disabled,
.btn-reject:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

/* Loading state for buttons */
.btn-loading {
  position: relative;
  color: transparent !important;
}

.btn-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Table Container Styles */
.table-container {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 16px rgba(52, 152, 219, 0.1);
  margin: 1rem 0;
}

/* Table Header Styles */
.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e8f4fd;
}

.table-header h3 {
  margin: 0;
  color: #2c3e50;
  font-size: 1.3rem;
  font-weight: 600;
}

/* Table Filter Styles */
.table-filters {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.table-filters input,
.table-filters select {
  padding: 0.6rem 0.8rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.9rem;
  background: white;
  transition: border-color 0.2s ease;
}

.table-filters input:focus,
.table-filters select:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Responsive Table Styles */
@media (max-width: 768px) {
  #pending-bookings-table,
  #profile-requests-table,
  #tour-requests-table,
  #hostel-table {
    font-size: 0.85rem;
  }
  
  #pending-bookings-table th,
  #pending-bookings-table td,
  #profile-requests-table th,
  #profile-requests-table td,
  #tour-requests-table th,
  #tour-requests-table td,
  #hostel-table th,
  #hostel-table td {
    padding: 0.8rem 0.5rem;
  }
  
  .table-filters {
    flex-direction: column;
    align-items: stretch;
  }
  
  .table-filters input,
  .table-filters select {
    width: 100%;
    margin-bottom: 0.5rem;
  }
}

/* ===== SORTABLE TABLE HEADERS ===== */
th[data-sort] {
  cursor: pointer;
  user-select: none;
  position: relative;
  transition: background-color 0.2s ease;
}

th[data-sort]:hover {
  background-color: rgba(52, 152, 219, 0.1);
}

th[data-sort] .sort-icon {
  display: inline-block;
  margin-left: 0.5rem;
  font-weight: bold;
  transition: color 0.2s ease;
}

th[data-sort] .sort-icon:empty::before {
  content: '↕';
  color: #ccc;
  font-size: 0.8em;
}

th[data-sort]:hover .sort-icon:empty::before {
  color: #3498db;
}

/* Active sort indicator */
th[data-sort].sort-active {
  background-color: rgba(52, 152, 219, 0.15);
  color: #3498db;
}

/* Search and filter input styling */
#booking-filter,
#booking-status-filter,
#booking-date-filter {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 0.5rem;
  font-size: 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#booking-filter:focus,
#booking-status-filter:focus,
#booking-date-filter:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* Filter container styling */
.filter-container {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  align-items: center;
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.filter-container label {
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.25rem;
  display: block;
}

.filter-group {
  display: flex;
  flex-direction: column;
  min-width: 150px;
}

/* Responsive filter layout */
@media (max-width: 768px) {
  .filter-container {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-group {
    min-width: auto;
  }
  
  #booking-filter {
    flex: 1;
    min-width: 200px;
  }
}

/* Clear filters button styling */
#clear-filters-btn {
  background: #6c757d !important;
  color: white !important;
  border: none !important;
  padding: 0.5rem 1rem !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  font-size: 0.9rem !important;
  transition: background-color 0.2s ease !important;
  margin-top: 1.5rem !important;
}

#clear-filters-btn:hover {
  background: #5a6268 !important;
}

/* Results counter styling */
#results-counter {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
  padding: 0.5rem;
  background: #f8f9fa;
  border-radius: 4px;
  border-left: 3px solid #3498db;
}

/* ===== MOBILE BOOKINGS TABLE ===== */
@media (max-width: 768px) {
  /* Hide the table on mobile */
  #pending-bookings-table {
    display: none !important;
  }
  
  /* Show mobile cards container */
  .mobile-bookings-container {
    display: block !important;
  }
  
  /* Mobile booking cards */
  .mobile-booking-card {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
  }
  
  .mobile-booking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #f1f3f4;
  }
  
  .mobile-booking-title {
    font-weight: 600;
    font-size: 1rem;
    color: #2c3e50;
    margin: 0;
  }
  
  .mobile-booking-status {
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
  }
  
  .mobile-booking-status.pending {
    background: #fff3cd;
    color: #856404;
  }
  
  .mobile-booking-status.confirmed {
    background: #d4edda;
    color: #155724;
  }
  
  .mobile-booking-status.cancelled {
    background: #f8d7da;
    color: #721c24;
  }
  
  .mobile-booking-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin-bottom: 1rem;
  }
  
  .mobile-booking-detail {
    display: flex;
    flex-direction: column;
  }
  
  .mobile-booking-label {
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .mobile-booking-value {
    font-size: 0.9rem;
    color: #2c3e50;
    font-weight: 500;
  }
  
  .mobile-booking-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
  }
  
  .mobile-booking-actions .btn-view,
  .mobile-booking-actions .btn-approve,
  .mobile-booking-actions .btn-reject {
    flex: 1;
    min-width: 80px;
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
  }
  
  .mobile-booking-actions .btn-view {
    background: #3498db;
    color: white;
  }
  
  .mobile-booking-actions .btn-view:hover {
    background: #2980b9;
  }
  
  .mobile-booking-actions .btn-approve {
    background: #27ae60;
    color: white;
  }
  
  .mobile-booking-actions .btn-approve:hover {
    background: #229954;
  }
  
  .mobile-booking-actions .btn-reject {
    background: #e74c3c;
    color: white;
  }
  
  .mobile-booking-actions .btn-reject:hover {
    background: #c0392b;
  }
  
  /* Full width detail for important info */
  .mobile-booking-detail.full-width {
    grid-column: 1 / -1;
  }
  
  /* Amount styling */
  .mobile-booking-amount {
    font-weight: 600;
    color: #27ae60;
    font-size: 1rem;
  }
}

/* Desktop: Hide mobile cards */
@media (min-width: 769px) {
  .mobile-bookings-container {
    display: none !important;
  }
  
  #pending-bookings-table {
    display: table !important;
  }
}

/* Additional mobile improvements */
@media (max-width: 480px) {
  .mobile-booking-details {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
  
  .mobile-booking-actions {
    flex-direction: column;
  }
  
  .mobile-booking-actions .btn-view,
  .mobile-booking-actions .btn-approve,
  .mobile-booking-actions .btn-reject {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .mobile-booking-card {
    padding: 0.8rem;
    margin-bottom: 0.8rem;
  }
  
  .mobile-booking-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .mobile-booking-title {
    font-size: 0.9rem;
  }
  
  .mobile-booking-status {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
  }
}

/* Ensure proper display on all screen sizes */
.mobile-bookings-container {
  display: none;
}

@media (max-width: 768px) {
  .mobile-bookings-container {
    display: block !important;
  }
  
  #pending-bookings-table {
    display: none !important;
  }
}

/* Loading state for mobile cards */
.mobile-booking-card.loading {
  opacity: 0.7;
  pointer-events: none;
}

.mobile-booking-card.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Booking Modal Responsive Styles */
#booking-modal .modal-content {
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

#booking-modal .modal-content h3 {
  color: #2c3e50;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #3498db;
  padding-bottom: 0.5rem;
}

#booking-modal .modal-content p {
  margin: 0.5rem 0;
  line-height: 1.6;
}

#booking-modal .modal-content strong {
  color: #34495e;
  font-weight: 600;
}

#modal-booking-status {
  padding: 0.3rem 0.6rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
}

#modal-booking-status.pending {
  background: #fff3cd;
  color: #856404;
}

#modal-booking-status.confirmed {
  background: #d4edda;
  color: #155724;
}

#modal-booking-status.cancelled {
  background: #f8d7da;
  color: #721c24;
}

/* Mobile responsive for booking modal */
@media (max-width: 768px) {
  #booking-modal .modal-content {
    width: 95%;
    margin: 1rem;
    padding: 1.5rem;
  }
  
  #booking-modal .modal-content > div:first-of-type {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  #booking-modal .modal-content p {
    margin: 0.3rem 0;
    font-size: 0.9rem;
  }
  
  #booking-modal .modal-content h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }
}

@media (max-width: 480px) {
  #booking-modal .modal-content {
    width: 98%;
    margin: 0.5rem;
    padding: 1rem;
  }
  
  #booking-modal .modal-content h3 {
    font-size: 1.1rem;
  }
  
  #booking-modal .modal-content p {
    font-size: 0.85rem;
  }
}

/* KNOWHOUSE CO-WORKING Section Styles */
.knowhouse-section {
  padding: 4rem 0;
  margin: 3rem 0;
  position: relative;
  z-index: 3;
  color: #0a1857;
}

.knowhouse-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

.knowhouse-card {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  box-shadow: 0 12px 32px rgba(31, 38, 135, 0.12), 0 4px 12px rgba(44, 62, 80, 0.08);
  padding: 2.2rem 1.2rem 2rem 1.2rem;
  position: relative;
  border: 1.5px solid rgba(52, 152, 219, 0.18);
  backdrop-filter: blur(12px) saturate(1.1);
  overflow: hidden;
  margin: 0 auto;
  max-width: 520px;
  transition: box-shadow 0.3s, border 0.3s;
}
.knowhouse-card:hover {
  box-shadow: 0 20px 40px rgba(52,152,219,0.13), 0 4px 16px rgba(44,62,80,0.10);
  border: 2px solid #3498db55;
}
.knowhouse-card h2 {
  font-size: 1.7rem;
  font-weight: 700;
  color: #0a1857;
  margin-bottom: 1.2rem;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(44,62,80,0.13);
}
.knowhouse-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1.1rem 1.5rem;
  margin-top: 1.2rem;
  align-items: stretch;
}
.service-item {
  background: rgba(255,255,255,0.18);
  border-radius: 12px;
  padding: 1.1rem 0.5rem 1.1rem 0.5rem;
  text-align: center;
  color: #0a1857;
  box-shadow: 0 1px 4px rgba(52,152,219,0.08);
  border: 1px solid rgba(52,152,219,0.10);
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 110px;
  min-height: 70px;
  justify-content: center;
  font-size: 1rem;
}
.service-item:hover {
  background: rgba(52,152,219,0.13);
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 4px 12px rgba(52,152,219,0.13);
  border-color: #3498db55;
}
.service-icon {
  font-size: 1.7rem;
  margin-bottom: 0.4rem;
  display: block;
  filter: drop-shadow(0 1px 3px rgba(44,62,80,0.10));
  transition: font-size 0.18s;
  animation: bounce 2s infinite;
}
.service-item:hover .service-icon {
  font-size: 2rem;
}
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-7px); }
  60% { transform: translateY(-3px); }
}
.service-text {
  font-size: 1.05rem;
  font-weight: 600;
  color: #0a1857;
  line-height: 1.3;
  text-shadow: 0 2px 4px rgba(44,62,80,0.10);
}
@media (max-width: 900px) {
  .knowhouse-card { padding: 1.2rem 0.3rem 1rem 0.3rem; border-radius: 16px; }
  .knowhouse-card h2 { font-size: 1.3rem; }
  .knowhouse-services { gap: 0.7rem 1rem; }
  .service-item { padding: 0.7rem 0.2rem; border-radius: 6px; min-width: 90px; min-height: 40px; }
  .service-icon { font-size: 1.2rem; }
  .service-item:hover .service-icon { font-size: 1.4rem; }
  .service-text { font-size: 0.85rem; }
}
@media (max-width: 600px) {
  .knowhouse-section { padding: 0.7rem 0; }
  .knowhouse-card { padding: 0.7rem 0.1rem 0.7rem 0.1rem; border-radius: 7px; }
  .knowhouse-card h2 { font-size: 1.1rem; }
  .service-item { padding: 0.4rem 0.1rem; border-radius: 4px; min-width: 70px; min-height: 30px; }
  .service-icon { font-size: 0.9rem; }
  .service-item:hover .service-icon { font-size: 1.1rem; }
  .service-text { font-size: 0.7rem; }
}

/* Additional hover effects for service items */
.service-item:nth-child(1):hover {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
}
.service-item:nth-child(2):hover {
  background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
}
.service-item:nth-child(3):hover {
  background: linear-gradient(135deg, #45b7d1 0%, #96c93d 100%);
}
.service-item:nth-child(4):hover {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}
.service-item:nth-child(5):hover {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* Additional hover effects for service items */
.service-item:nth-child(1):hover {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
}

.service-item:nth-child(2):hover {
  background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
}

.service-item:nth-child(3):hover {
  background: linear-gradient(135deg, #45b7d1 0%, #96c93d 100%);
}

.service-item:nth-child(4):hover {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.service-item:nth-child(5):hover {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}
/* ===== EXPANDED TABLE LAYOUT FOR FULL VISIBILITY ===== */
.table-wrapper {
  width: 100%;
  overflow: visible; /* Remove horizontal scroll */
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(52, 152, 219, 0.1);
  margin: 1rem 0;
  position: relative;
}

/* Ensure tables fit properly in wrapper */
.table-wrapper table {
  margin: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  width: 100%;
  min-width: auto; /* Remove minimum width constraint */
  table-layout: auto; /* Allow flexible column widths */
}

/* Expand dashboard sections to accommodate wider tables */
.dashboard-section {
  overflow: visible !important;
  padding: 1.5rem;
  width: 100%;
  max-width: none; /* Remove max-width constraint */
}

/* Expand main content area for admin dashboards */
.admin-dashboard .main-content {
  max-width: none !important;
  width: calc(100vw - 220px); /* Full width minus sidebar */
  padding: 2rem 1rem; /* Reduce horizontal padding */
  margin-left: 220px;
}

/* Expand dashboard container */
.admin-dashboard .dashboard-container {
  width: 100vw;
  max-width: 100vw;
}

/* Make sections with tables wider */
#bookings-section,
#profile-requests-section,
#tour-requests-section,
#hostels-section {
  width: 100%;
  max-width: none;
  margin: 0 auto 2rem auto;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .table-wrapper table {
    font-size: 0.9rem;
  }
  
  .table-wrapper th,
  .table-wrapper td {
    padding: 0.6rem 0.4rem;
  }
}

@media (max-width: 992px) {
  .table-wrapper table {
    font-size: 0.85rem;
  }
  
  .table-wrapper th,
  .table-wrapper td {
    padding: 0.5rem 0.3rem;
  }
}

/* Mobile: Keep existing mobile card behavior */
@media (max-width: 768px) {
  .admin-dashboard .main-content {
    width: 100vw;
    margin-left: 0;
    padding: 1rem;
    padding-top: 5rem; /* Space for mobile menu button */
  }
  
  .table-wrapper {
    display: none; /* Hide tables on mobile, show cards instead */
  }
  
  .mobile-bookings-container {
    display: block !important;
  }
}
/* Smooth scrolling on iOS */

.table-wrapper::-webkit-scrollbar {
  height: 8px;
}

.table-wrapper::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.table-wrapper::-webkit-scrollbar-thumb {
  background: #3498db;
  border-radius: 4px;
}

.table-wrapper::-webkit-scrollbar-thumb:hover {
  background: #2980b9;
}

/* Ensure tables fit properly in wrapper */
.table-wrapper table {
  margin: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  min-width: 800px; /* Minimum width to prevent cramping */
}

/* Table container improvements */
.dashboard-section {
  overflow: visible !important;
  padding: 1.5rem;
}

/* Responsive table improvements */
@media (max-width: 1200px) {
  .table-wrapper table {
    min-width: 700px;
    font-size: 0.9rem;
  }
  
  .table-wrapper th,
  .table-wrapper td {
    padding: 0.6rem 0.4rem;
  }
}

@media (max-width: 992px) {
  .table-wrapper table {
    min-width: 600px;
    font-size: 0.85rem;
  }
  
  .table-wrapper th,
  .table-wrapper td {
    padding: 0.5rem 0.3rem;
  }
}

/* Table scroll indicator */
.table-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 100%;
  background: linear-gradient(to left, rgba(255,255,255,0.8), transparent);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.table-wrapper.scrollable::after {
  opacity: 1;
}

/* Filter container responsive improvements */
.filter-container {
  background: #f8f9fa !important;
  padding: 1rem !important;
  border-radius: 8px !important;
  margin-bottom: 1rem !important;
  border: 1px solid #e9ecef !important;
  overflow: visible !important;
}

@media (max-width: 768px) {
  .filter-container {
    padding: 0.8rem !important;
  }
  
  .filter-group {
    margin-bottom: 0.5rem;
  }
  
  .filter-group:last-child {
    margin-bottom: 0;
  }
}


/* ===== ADMIN DASHBOARD EXPANDED LAYOUT OVERRIDES ===== */
body.admin-dashboard .main-content {
  max-width: none !important;
  width: calc(100vw - 220px) !important;
  margin-left: 220px !important;
  padding: 2rem 1rem !important;
  min-height: 100vh;
  background: #f4f8fb;
}

body.admin-dashboard .dashboard-section {
  width: 100% !important;
  max-width: none !important;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 1.5rem !important;
  margin-bottom: 2rem;
  overflow: visible !important;
}

/* Ensure filter containers don't constrain width */
body.admin-dashboard .filter-container {
  width: 100% !important;
  max-width: none !important;
  overflow: visible !important;
}

/* Table specific overrides */
body.admin-dashboard .table-wrapper {
  width: 100% !important;
  overflow: visible !important;
  background: transparent;
  box-shadow: none;
  margin: 1rem 0;
}

body.admin-dashboard .table-wrapper table {
  width: 100% !important;
  min-width: auto !important;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(52, 152, 219, 0.1);
}

/* Mobile responsive overrides */
@media (max-width: 768px) {
  body.admin-dashboard .main-content {
    width: 100vw !important;
    margin-left: 0 !important;
    padding: 1rem !important;
    padding-top: 5rem !important;
  }
  
  body.admin-dashboard .dashboard-section {
    width: calc(100vw - 2rem) !important;
    margin: 0 1rem 1rem 1rem !important;
    padding: 1rem !important;
  }
}

@media (max-width: 480px) {
  body.admin-dashboard .main-content {
    padding: 0.5rem !important;
    padding-top: 4.5rem !important;
  }
  
  body.admin-dashboard .dashboard-section {
    width: calc(100vw - 1rem) !important;
    margin: 0 0.5rem 1rem 0.5rem !important;
    padding: 0.8rem !important;
  }
}

/* Tablet responsive */
@media (min-width: 769px) and (max-width: 1024px) {
  body.admin-dashboard .main-content {
    width: calc(100vw - 200px) !important;
    margin-left: 200px !important;
  }
}

@media (min-width: 1025px) {
  body.admin-dashboard .main-content {
    width: calc(100vw - 250px) !important;
    margin-left: 250px !important;
  }
}

/* ===== OPTIMIZED TABLE COLUMN WIDTHS ===== */
body.admin-dashboard #pending-bookings-table th,
body.admin-dashboard #pending-bookings-table td {
  padding: 1rem 0.8rem;
  text-align: left;
  border-bottom: 1px solid #e8f4fd;
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Specific column width optimizations */
body.admin-dashboard #pending-bookings-table th:nth-child(1), /* Tenant */
body.admin-dashboard #pending-bookings-table td:nth-child(1) {
  width: 18%;
  min-width: 150px;
}

body.admin-dashboard #pending-bookings-table th:nth-child(2), /* Hostel */
body.admin-dashboard #pending-bookings-table td:nth-child(2) {
  width: 16%;
  min-width: 120px;
}

body.admin-dashboard #pending-bookings-table th:nth-child(3), /* Room Type */
body.admin-dashboard #pending-bookings-table td:nth-child(3) {
  width: 12%;
  min-width: 100px;
}

body.admin-dashboard #pending-bookings-table th:nth-child(4), /* Gender */
body.admin-dashboard #pending-bookings-table td:nth-child(4) {
  width: 10%;
  min-width: 80px;
}

body.admin-dashboard #pending-bookings-table th:nth-child(5), /* Room # */
body.admin-dashboard #pending-bookings-table td:nth-child(5) {
  width: 10%;
  min-width: 80px;
}

body.admin-dashboard #pending-bookings-table th:nth-child(6), /* Amount */
body.admin-dashboard #pending-bookings-table td:nth-child(6) {
  width: 12%;
  min-width: 100px;
}

body.admin-dashboard #pending-bookings-table th:nth-child(7), /* Status */
body.admin-dashboard #pending-bookings-table td:nth-child(7) {
  width: 10%;
  min-width: 90px;
}

body.admin-dashboard #pending-bookings-table th:nth-child(8), /* Action */
body.admin-dashboard #pending-bookings-table td:nth-child(8) {
  width: 12%;
  min-width: 120px;
}

/* Allow text wrapping for longer content */
body.admin-dashboard #pending-bookings-table td:nth-child(1), /* Tenant names */
body.admin-dashboard #pending-bookings-table td:nth-child(2) { /* Hostel names */
  white-space: normal;
  word-wrap: break-word;
  max-width: 200px;
}

/* Ensure action buttons fit properly */
body.admin-dashboard .action-buttons {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}

body.admin-dashboard .action-buttons .btn-approve,
body.admin-dashboard .action-buttons .btn-reject,
body.admin-dashboard .action-buttons .btn-view {
  padding: 0.4rem 0.6rem;
  font-size: 0.8rem;
  min-width: 60px;
  margin: 0.1rem;
}

/* Responsive column adjustments */
@media (max-width: 1400px) {
  body.admin-dashboard #pending-bookings-table th,
  body.admin-dashboard #pending-bookings-table td {
    padding: 0.8rem 0.6rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 1200px) {
  body.admin-dashboard #pending-bookings-table th,
  body.admin-dashboard #pending-bookings-table td {
    padding: 0.6rem 0.4rem;
    font-size: 0.85rem;
  }
  
  body.admin-dashboard .action-buttons .btn-approve,
  body.admin-dashboard .action-buttons .btn-reject,
  body.admin-dashboard .action-buttons .btn-view {
    padding: 0.3rem 0.5rem;
    font-size: 0.75rem;
    min-width: 50px;
  }
}
