:root {
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: #e0e7ff;
  --secondary: #06b6d4;
  --dark: #0f172a;
  --dark-light: #1e293b;
  --light: #f8fafc;
  --gray: #64748b;
  --gray-light: #e2e8f0;
  --success: #10b981;
  --success-light: #d1fae5;
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --danger: #ef4444;
  --danger-light: #fee2e2;
  --radius: 12px;
  --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: #f1f5f9;
  color: var(--dark);
  line-height: 1.6;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Navbar */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--gray-light);
  padding: 16px 0;
}
.nav-content { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.3rem; color: var(--primary); text-decoration: none; }
.logo-icon { width: 36px; height: 36px; background: var(--primary); color: #fff; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-links a { color: var(--gray); text-decoration: none; font-weight: 600; font-size: 0.95rem; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: 8px; font-weight: 600; font-size: 0.95rem;
  border: none; cursor: pointer; transition: all 0.2s; text-decoration: none;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25); }
.btn-outline { background: transparent; border: 1px solid var(--gray-light); color: var(--dark); }
.btn-outline:hover { background: #f8fafc; border-color: var(--gray); }
.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  color: #fff;
  padding: 70px 0 60px;
  text-align: center;
}
.hero h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 12px; letter-spacing: -0.5px; }
.hero p { font-size: 1.1rem; color: #c7d2fe; max-width: 650px; margin: 0 auto 30px; }

/* Filter Bar */
.filter-bar {
  background: #fff;
  border-radius: var(--radius);
  padding: 16px 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-top: -35px;
  position: relative;
  z-index: 10;
}
.filter-group { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.filter-chip {
  padding: 8px 16px; border-radius: 20px; background: #f8fafc; border: 1px solid var(--gray-light);
  color: var(--gray); font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.filter-chip.active, .filter-chip:hover {
  background: var(--primary-light); color: var(--primary); border-color: var(--primary);
}

/* Room Grid */
.rooms-section { padding: 50px 0 80px; }
.section-title { font-size: 1.8rem; font-weight: 700; margin-bottom: 24px; color: var(--dark); }
.room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.room-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0,0,0,0.04);
}
.room-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.1);
}
.room-img-wrapper { position: relative; width: 100%; height: 210px; overflow: hidden; background: #e2e8f0; }
.room-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.room-card:hover .room-img { transform: scale(1.05); }
.badge-type {
  position: absolute; top: 14px; left: 14px; padding: 6px 12px; border-radius: 6px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
}
.badge-vip { background: #8b5cf6; color: #fff; }
.badge-reguler { background: #3b82f6; color: #fff; }

.badge-status {
  position: absolute; top: 14px; right: 14px; padding: 6px 12px; border-radius: 6px;
  font-size: 0.75rem; font-weight: 700;
}
.badge-tersedia { background: var(--success-light); color: var(--success); }
.badge-terisi { background: var(--danger-light); color: var(--danger); }

.room-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.room-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.room-num { font-size: 1.3rem; font-weight: 700; color: var(--dark); }
.room-price { font-size: 1.25rem; font-weight: 800; color: var(--primary); }
.room-price span { font-size: 0.8rem; font-weight: 500; color: var(--gray); }

.room-facilities { font-size: 0.9rem; color: var(--gray); margin-bottom: 20px; line-height: 1.5; flex: 1; }
.room-actions { display: flex; gap: 10px; }
.btn-book { width: 100%; padding: 12px; border-radius: 8px; font-weight: 600; text-align: center; }

/* Complaint / Support Form Section */
.complaint-section {
  background: #fff;
  padding: 60px 0;
  border-top: 1px solid var(--gray-light);
}
.complaint-card {
  background: linear-gradient(to right bottom, #f8fafc, #f1f5f9);
  border-radius: var(--radius);
  padding: 36px;
  max-width: 700px;
  margin: 0 auto;
  border: 1px solid var(--gray-light);
}
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; color: var(--dark-light); }
.form-control {
  width: 100%; padding: 12px 14px; border: 1px solid var(--gray-light); border-radius: 8px;
  font-family: inherit; font-size: 0.95rem; outline: none; transition: border-color 0.2s;
  background: #fff;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1); }

/* Modal */
.modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; z-index: 1000; padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal-card {
  background: #fff; border-radius: var(--radius); width: 100%; max-width: 480px;
  overflow: hidden; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
.modal-header { padding: 18px 24px; border-bottom: 1px solid var(--gray-light); display: flex; justify-content: space-between; align-items: center; }
.modal-title { font-size: 1.15rem; font-weight: 700; color: var(--dark); }
.modal-close { background: none; border: none; font-size: 1.4rem; color: var(--gray); cursor: pointer; }
.modal-body { padding: 24px; }

/* Admin Dashboard Styles */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 35px; }
.stat-card {
  background: #fff; padding: 22px; border-radius: var(--radius); box-shadow: var(--shadow);
  display: flex; flex-direction: column; justify-content: space-between; border-left: 4px solid var(--primary);
}
.stat-num { font-size: 2rem; font-weight: 800; color: var(--dark); margin: 6px 0; }
.stat-label { font-size: 0.85rem; font-weight: 600; color: var(--gray); text-transform: uppercase; }

.table-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 35px; }
.table-header { padding: 20px 24px; border-bottom: 1px solid var(--gray-light); display: flex; justify-content: space-between; align-items: center; }
.table-responsive { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 0.9rem; }
th { background: #f8fafc; padding: 14px 20px; font-weight: 700; color: var(--gray); border-bottom: 1px solid var(--gray-light); }
td { padding: 14px 20px; border-bottom: 1px solid var(--gray-light); }
tr:hover { background: #f8fafc; }

/* Footer */
footer { background: #fff; border-top: 1px solid var(--gray-light); padding: 30px 0; text-align: center; color: var(--gray); font-size: 0.9rem; margin-top: auto; }
