/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f1f5f9;
  min-height: 100vh;
  padding: 20px;
  color: #1f2937;
}

/* Container */
.container {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

/* Typography */
h1, h2 {
  color: #0f172a;
  margin-bottom: 20px;
  text-align: center;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.4rem;
  color: #334155;
}

/* Form */
.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #334155;
}

input, select {
  width: 100%;
  padding: 12px 14px;
  border: 1.8px solid #e5e7eb;
  border-radius: 10px;
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  text-align: center;
  user-select: none;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  box-shadow: 0 6px 12px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(37, 99, 235, 0.35);
}

.btn-secondary {
  background: #e5e7eb;
  color: #1f2937;
}

.btn-secondary:hover {
  background: #cbd5f5;
}

.btn-danger {
  background: #ef4444;
  color: #fff;
}

.btn-danger:hover {
  background: #dc2626;
}

.btn-full {
  width: 100%;
  padding: 14px;
}

.btn-large {
  padding: 14px 28px;
  font-size: 16px;
  width: auto;
}

.btn-small {
  padding: 6px 12px;
  font-size: 13px;
}

/* Alerts */
.alert {
  padding: 15px 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 14px;
}

.alert-success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.alert-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

th, td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

th {
  background: #2563eb;
  color: #fff;
  font-weight: 600;
}

tr:hover {
  background: #f8fafc;
}

.detail-table {
  width: 100%;
  border-collapse: collapse;
  margin: 15px 0;
}

.detail-table th {
  background: #f1f5f9;
  color: #0f172a;
  width: 40%;
  text-align: left;
  padding: 8px 0;
}

.detail-table td {
  font-weight: 600;
}

/* Status Badges */
.status {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  color: #fff;
  text-transform: capitalize;
  display: inline-block;
}

.status.pending {
  background: #f59e0b;
}

.status.waiting_verification {
  background: #3b82f6;
}

.status.paid {
  background: #6366f1;
}

.status.verified {
  background: #16a34a;
}

/* Payment Detail Badges */
.status-paid {
  background: #fff7ed;
  color: #9a3412;
}

.status-verified {
  background: #ecfdf5;
  color: #065f46;
}

.status-pending {
  background: #f1f5f9;
  color: #334155;
}

/* QR Code */
.qr-code {
  display: block;
  margin: 20px auto;
  border: 5px solid #2563eb;
  border-radius: 12px;
  width: 200px;
}

/* Room Grid */
.room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.room-card {
  background: #f8fafc;
  padding: 20px;
  border-radius: 14px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 2px solid transparent;
  user-select: none;
}

.room-card:hover {
  border-color: #2563eb;
  transform: translateY(-4px);
}

.room-card.selected {
  border-color: #2563eb;
  background: #eef2ff;
}

/* Navigation */
.nav {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.nav a {
  color: #2563eb;
  text-decoration: none;
  padding: 10px 20px;
  border: 2px solid #2563eb;
  border-radius: 10px;
  transition: all 0.2s ease;
  font-weight: 600;
  user-select: none;
}

.nav a:hover {
  background: #2563eb;
  color: #fff;
}

/* Verified Section */
.verified-section {
  text-align: center;
  padding: 20px;
  background: #ecfdf5;
  border-radius: 14px;
  margin-top: 20px;
}

.verified-section h3 {
  color: #065f46;
}

/* Misc */
.small {
  font-size: 12px;
  color: #64748b;
}

.payment-success {
  text-align: center;
  padding: 30px;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 6px;
}

.action-buttons .btn {
  padding: 6px 10px;
  font-size: 12px;
}

/* Dashboard Header */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

/* Auth Page */
.auth-page {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-container {
  width: 100%;
  padding: 20px;
}

.auth-card {
  max-width: 400px;
  margin: auto;
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.auth-title {
  text-align: center;
  margin-bottom: 5px;
}

.auth-subtitle {
  text-align: center;
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 25px;
}

.auth-footer {
  text-align: center;
  margin-top: 20px;
}

.auth-footer a {
  color: #2563eb;
  text-decoration: none;
  font-size: 14px;
}

/* Booking Page */
.booking-page {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  min-height: 100vh;
  padding: 30px 15px;
}

.booking-container {
  max-width: 900px;
  margin: auto;
}

.booking-card {
  background: #fff;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.08);
}

.page-title {
  text-align: center;
  margin-bottom: 5px;
}

.page-subtitle {
  text-align: center;
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 25px;
}

/* Form Row */
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 15px;
}

/* Back link */
.back-link {
  margin-top: 20px;
  text-align: center;
}

.back-link a {
  color: #2563eb;
  text-decoration: none;
  font-size: 14px;
  user-select: none;
}

/* Home Page (Optional) */
.hero {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: #fff;
  padding: 80px 20px;
  text-align: center;
}

.hero-content {
  max-width: 700px;
  margin: auto;
}

.hero-subtitle {
  font-size: 16px;
  margin: 15px 0 30px;
  color: #e0e7ff;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-outline {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
  user-select: none;
}

.btn-outline:hover {
  background: #fff;
  color: #2563eb;
}

/* Home container */
.home-container {
  padding: 50px 20px;
}

.section-title {
  text-align: center;
  margin-bottom: 30px;
}

.room-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.room-item {
  background: #fff;
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.06);
  text-align: center;
}

.room-item h3 {
  margin-bottom: 10px;
}

.room-item p {
  font-size: 14px;
  color: #6b7280;
}

/* Footer */
.footer {
  text-align: center;
  padding: 20px;
  font-size: 13px;
  color: #6b7280;
}

/* Payment Page Extra */
.card-box {
  background: #fff;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  margin-bottom: 20px;
}

.warning-box {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  padding: 16px;
  border-radius: 14px;
  margin-bottom: 25px;
  font-size: 14px;
}

.warning-box p {
  margin: 8px 0;
}

.warning-box small {
  color: #9a3412;
}
/* ROOM BOOKED STATE */
.room-card.booked {
  opacity: 0.45;
  border-color: #ef4444 !important;
  background: #fee2e2 !important;
  cursor: not-allowed;
  position: relative;
}

.room-card.booked::after {
  content: "BOOKED";
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ef4444;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
}

