/* KOAF HotelPro — Main Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;600;700&display=swap');

:root {
  --navy:       #1a2b4a;
  --navy-dark:  #0f1d33;
  --navy-light: #243557;
  --gold:       #c9a84c;
  --gold-light: #e2c97e;
  --white:      #ffffff;
  --cream:      #faf8f3;
  --gray-100:   #f5f5f5;
  --gray-200:   #e8e8e8;
  --gray-500:   #8a8a8a;
  --gray-700:   #444444;
  --success:    #2ecc71;
  --warning:    #f39c12;
  --danger:     #e74c3c;
  --info:       #3498db;
  --radius:     12px;
  --radius-sm:  8px;
  --shadow:     0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.15);
  --transition: all 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--cream);
  color: var(--gray-700);
  line-height: 1.6;
  font-size: 15px;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ── LAYOUT ── */
.layout { display: flex; min-height: 100vh; }

.sidebar {
  width: 260px;
  background: var(--navy-dark);
  position: fixed;
  top: 0; left: 0; bottom: 0;
  overflow-y: auto;
  transition: var(--transition);
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.sidebar-brand {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-logo {
  width: 40px; height: 40px;
  background: var(--gold);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; color: var(--navy-dark);
  font-family: 'Playfair Display', serif;
  flex-shrink: 0;
}

.sidebar-brand-text h2 {
  font-size: 15px; font-weight: 700; color: var(--white);
  font-family: 'Playfair Display', serif;
}

.sidebar-brand-text span {
  font-size: 11px; color: var(--gold); text-transform: uppercase; letter-spacing: 1px;
}

.sidebar-nav { padding: 16px 0; flex: 1; }

.nav-section {
  padding: 10px 20px 4px;
  font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: rgba(255,255,255,0.3);
}

.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 20px;
  color: rgba(255,255,255,0.65);
  font-size: 14px; font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
  border-left: 3px solid transparent;
}

.nav-item:hover, .nav-item.active {
  color: var(--white);
  background: rgba(255,255,255,0.07);
  border-left-color: var(--gold);
}

.nav-item i { width: 20px; text-align: center; font-size: 16px; }

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.sidebar-user {
  display: flex; align-items: center; gap: 10px;
}

.sidebar-user-avatar {
  width: 36px; height: 36px;
  background: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: var(--navy-dark);
}

.sidebar-user-info .name { font-size: 13px; font-weight: 600; color: var(--white); }
.sidebar-user-info .role { font-size: 11px; color: var(--gold); text-transform: capitalize; }

/* ── MAIN CONTENT ── */
.main-content {
  margin-left: 260px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.topbar {
  background: var(--white);
  padding: 16px 28px;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  position: sticky; top: 0; z-index: 100;
}

.topbar-title h1 { font-size: 20px; font-weight: 700; color: var(--navy); font-family: 'Playfair Display', serif; }
.topbar-title p  { font-size: 12px; color: var(--gray-500); }

.topbar-actions { display: flex; align-items: center; gap: 16px; }

.btn-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: var(--gray-100);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--gray-700);
  transition: var(--transition); position: relative;
}

.btn-icon:hover { background: var(--navy); color: var(--white); }

.badge-count {
  position: absolute; top: -4px; right: -4px;
  background: var(--danger); color: var(--white);
  font-size: 10px; font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

.hamburger {
  display: none;
  background: none; border: none; cursor: pointer;
  font-size: 22px; color: var(--navy);
}

.page-content { padding: 28px; flex: 1; }

/* ── CARDS ── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.card-glass {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}

.card-title { font-size: 16px; font-weight: 700; color: var(--navy); font-family: 'Playfair Display', serif; }
.card-subtitle { font-size: 13px; color: var(--gray-500); }

/* ── STAT CARDS ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  display: flex; align-items: flex-start; justify-content: space-between;
  transition: var(--transition);
  border-left: 4px solid transparent;
}

.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.stat-card.navy  { border-left-color: var(--navy); }
.stat-card.gold  { border-left-color: var(--gold); }
.stat-card.green { border-left-color: var(--success); }
.stat-card.red   { border-left-color: var(--danger); }
.stat-card.blue  { border-left-color: var(--info); }

.stat-info .label  { font-size: 12px; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }
.stat-info .value  { font-size: 28px; font-weight: 700; color: var(--navy); margin: 4px 0; line-height: 1; }
.stat-info .change { font-size: 12px; color: var(--success); }
.stat-info .change.down { color: var(--danger); }

.stat-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}

.stat-icon.navy  { background: rgba(26,43,74,0.1);  color: var(--navy); }
.stat-icon.gold  { background: rgba(201,168,76,0.15); color: var(--gold); }
.stat-icon.green { background: rgba(46,204,113,0.1);  color: var(--success); }
.stat-icon.red   { background: rgba(231,76,60,0.1);   color: var(--danger); }
.stat-icon.blue  { background: rgba(52,152,219,0.1);  color: var(--info); }

/* ── GRID ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }

/* ── TABLES ── */
.table-wrap { overflow-x: auto; }

table {
  width: 100%; border-collapse: collapse;
  font-size: 14px;
}

th {
  background: var(--gray-100);
  color: var(--navy);
  font-weight: 600;
  padding: 12px 16px;
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--gray-200);
  color: var(--gray-700);
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(26,43,74,0.02); }

/* ── BADGES ── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px; font-weight: 600;
  text-transform: capitalize;
}

.badge-success  { background: rgba(46,204,113,0.12);  color: #27ae60; }
.badge-warning  { background: rgba(243,156,18,0.12);  color: #e67e22; }
.badge-danger   { background: rgba(231,76,60,0.12);   color: #c0392b; }
.badge-info     { background: rgba(52,152,219,0.12);  color: #2980b9; }
.badge-navy     { background: rgba(26,43,74,0.1);     color: var(--navy); }
.badge-gold     { background: rgba(201,168,76,0.15);  color: #8a6d1b; }
.badge-gray     { background: var(--gray-200);        color: var(--gray-700); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600;
  border: none; cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-light); }

.btn-gold { background: var(--gold); color: var(--navy-dark); }
.btn-gold:hover { background: var(--gold-light); }

.btn-success { background: var(--success); color: var(--white); }
.btn-danger  { background: var(--danger);  color: var(--white); }
.btn-info    { background: var(--info);    color: var(--white); }

.btn-outline {
  background: transparent;
  border: 2px solid var(--navy);
  color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-full { width: 100%; justify-content: center; }

/* ── FORMS ── */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }

.form-control {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 14px; font-family: inherit;
  color: var(--gray-700);
  transition: var(--transition);
  background: var(--white);
}

.form-control:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26,43,74,0.08);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

/* ── ALERTS ── */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500;
  margin-bottom: 20px;
  display: flex; align-items: flex-start; gap: 10px;
}

.alert-success { background: rgba(46,204,113,0.1); color: #1a7a40; border-left: 4px solid var(--success); }
.alert-danger  { background: rgba(231,76,60,0.1);  color: #a93226; border-left: 4px solid var(--danger); }
.alert-warning { background: rgba(243,156,18,0.1); color: #935116; border-left: 4px solid var(--warning); }
.alert-info    { background: rgba(52,152,219,0.1); color: #1a5276; border-left: 4px solid var(--info); }

/* ── STATUS DOTS ── */
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.dot-green  { background: var(--success); }
.dot-red    { background: var(--danger); }
.dot-orange { background: var(--warning); }
.dot-blue   { background: var(--info); }
.dot-gray   { background: var(--gray-500); }

/* ── PUBLIC NAVBAR ── */
.public-nav {
  background: var(--navy-dark);
  padding: 16px 40px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 999;
}

.pub-logo { display: flex; align-items: center; gap: 12px; }
.pub-logo-icon {
  width: 42px; height: 42px;
  background: var(--gold);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; color: var(--navy-dark);
  font-family: 'Playfair Display', serif;
}

.pub-logo span { font-size: 18px; font-weight: 700; color: var(--white); font-family: 'Playfair Display', serif; }
.pub-logo span em { color: var(--gold); font-style: normal; }

.pub-nav-links { display: flex; align-items: center; gap: 28px; }
.pub-nav-links a { color: rgba(255,255,255,0.75); font-size: 14px; font-weight: 500; transition: var(--transition); }
.pub-nav-links a:hover { color: var(--gold); }

.pub-nav-actions { display: flex; gap: 12px; align-items: center; }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, #2a4a7f 100%);
  color: var(--white);
  padding: 100px 40px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 12px; color: var(--gold); font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 24px;
}

.hero h1 { font-size: 54px; font-weight: 700; font-family: 'Playfair Display', serif; margin-bottom: 20px; line-height: 1.15; }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero p { font-size: 18px; color: rgba(255,255,255,0.75); max-width: 560px; margin: 0 auto 36px; }

.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── BOOKING SEARCH ── */
.booking-search {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  max-width: 900px;
  margin: -30px auto 60px;
  position: relative; z-index: 10;
}

.booking-search h3 { font-size: 18px; color: var(--navy); margin-bottom: 20px; font-family: 'Playfair Display', serif; }

.search-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 12px; align-items: end;
}

/* ── ROOMS GRID ── */
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  padding: 40px;
}

.room-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.room-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.room-img {
  height: 200px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.3);
  font-size: 48px;
  position: relative;
}

.room-img .room-type-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--gold);
  color: var(--navy-dark);
  font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 20px;
}

.room-body { padding: 20px; }
.room-body h3 { font-size: 18px; font-weight: 700; color: var(--navy); font-family: 'Playfair Display', serif; margin-bottom: 8px; }
.room-body p  { font-size: 13px; color: var(--gray-500); margin-bottom: 12px; }

.room-amenities { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.amenity-tag { background: var(--gray-100); color: var(--gray-700); font-size: 11px; font-weight: 500; padding: 3px 8px; border-radius: 20px; }

.room-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--gray-200);
}

.room-price .amount { font-size: 22px; font-weight: 700; color: var(--navy); }
.room-price .night  { font-size: 12px; color: var(--gray-500); }

/* ── LOGIN PAGE ── */
.auth-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}

.auth-card {
  background: var(--white);
  border-radius: 20px;
  padding: 44px;
  width: 100%; max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.auth-logo {
  text-align: center; margin-bottom: 32px;
}

.auth-logo .logo-icon {
  width: 64px; height: 64px;
  background: var(--navy);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  font-size: 28px; font-weight: 700; color: var(--gold);
  font-family: 'Playfair Display', serif;
}

.auth-logo h1 { font-size: 22px; font-weight: 700; color: var(--navy); font-family: 'Playfair Display', serif; }
.auth-logo p  { font-size: 13px; color: var(--gray-500); }

/* ── GUEST CLOCK CARD ── */
.clock-card {
  max-width: 500px; margin: 0 auto;
  text-align: center;
}

.clock-display {
  font-size: 48px; font-weight: 700; color: var(--navy);
  font-family: 'Playfair Display', serif;
  margin: 24px 0 8px;
}

.clock-date { font-size: 16px; color: var(--gray-500); margin-bottom: 32px; }

.clock-status {
  padding: 16px 24px;
  border-radius: var(--radius);
  font-size: 14px; font-weight: 600;
  margin-bottom: 24px;
}

.clock-status.in  { background: rgba(46,204,113,0.1); color: #27ae60; }
.clock-status.out { background: rgba(52,152,219,0.1); color: #2980b9; }

/* ── FOOTER ── */
.public-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 40px 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 { color: var(--white); font-size: 15px; font-weight: 700; margin-bottom: 14px; font-family: 'Playfair Display', serif; }
.footer-col p  { font-size: 13px; line-height: 1.8; }
.footer-col a  { display: block; font-size: 13px; color: rgba(255,255,255,0.6); padding: 4px 0; transition: var(--transition); }
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px;
}

/* ── MOBILE ── */
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
}

@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay.show { display: block; }
  .main-content { margin-left: 0; }
  .hamburger { display: flex; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .search-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .pub-nav-links { display: none; }
  .hero h1 { font-size: 36px; }
  .rooms-grid { padding: 20px; grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero { padding: 60px 20px 50px; }
  .hero h1 { font-size: 28px; }
  .booking-search { margin: -20px 16px 40px; }
  .stats-grid { grid-template-columns: 1fr; }
  .search-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 28px 20px; }
  .public-nav { padding: 14px 20px; }
  .page-content { padding: 16px; }
}

/* ── UTILITIES ── */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-gold   { color: var(--gold); }
.text-navy   { color: var(--navy); }
.text-muted  { color: var(--gray-500); }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }
.mt-1 { margin-top: 8px; }  .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.p-0 { padding: 0; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 16px; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.separator { height: 1px; background: var(--gray-200); margin: 20px 0; }

/* ── QR ROOM ASSISTANT ── */
.room-assistant {
  background: linear-gradient(180deg, var(--navy-dark) 0%, var(--navy) 40%, var(--cream) 40%);
  min-height: 100vh;
  padding: 40px 20px;
}

.room-assistant-card {
  background: var(--white);
  border-radius: 20px;
  max-width: 480px;
  margin: 0 auto;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.room-assist-header {
  background: var(--navy);
  padding: 28px;
  text-align: center;
  color: var(--white);
}

.room-assist-header h2 { font-family: 'Playfair Display', serif; font-size: 22px; }
.room-assist-header p  { color: rgba(255,255,255,0.65); font-size: 13px; margin-top: 4px; }

.room-request-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; padding: 24px;
}

.request-btn {
  background: var(--gray-100);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px 12px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  color: var(--navy);
}

.request-btn:hover { border-color: var(--navy); background: rgba(26,43,74,0.05); }
.request-btn .icon { font-size: 28px; margin-bottom: 8px; }
.request-btn .label { font-size: 13px; font-weight: 600; }

/* ── NOTIFICATION DROPDOWN ── */
.notif-dropdown {
  position: absolute; right: 0; top: calc(100% + 8px);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 320px;
  border: 1px solid var(--gray-200);
  z-index: 200;
  display: none;
}

.notif-dropdown.show { display: block; }
.notif-header { padding: 14px 18px; border-bottom: 1px solid var(--gray-200); font-weight: 700; font-size: 14px; color: var(--navy); }
.notif-item { padding: 12px 18px; border-bottom: 1px solid var(--gray-100); }
.notif-item:last-child { border-bottom: none; }
.notif-item .title { font-size: 13px; font-weight: 600; color: var(--navy); }
.notif-item .msg   { font-size: 12px; color: var(--gray-500); margin-top: 2px; }
.notif-item.unread { background: rgba(26,43,74,0.03); }

/* Print styles */
@media print {
  .sidebar, .topbar, .no-print { display: none !important; }
  .main-content { margin-left: 0; }
  .page-content { padding: 0; }
}
