/* ============================================================
   PINNACLE SQUARE — Nexus Portal
   Design Language: Dark Luxury · Gold Accents · Modern Sans
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --bg:          #0c1018;
  --bg-2:        #131b27;
  --bg-3:        #1a2535;
  --bg-hover:    #1f2d42;
  --gold:        #c9a87a;
  --gold-light:  #dfc19e;
  --gold-dim:    rgba(201,168,122,0.10);
  --gold-border: rgba(201,168,122,0.22);
  --text:        #f0e8de;
  --text-2:      #8a7f74;
  --text-3:      #44403a;
  --border:      #1d2838;
  --success:     #4caf78;
  --danger:      #e05858;
  --warn:        #e0a030;
  --sidebar-w:   264px;
  --topbar-h:    68px;
  --r:           12px;
  --r-lg:        20px;
  --shadow:      0 8px 40px rgba(0,0,0,0.55);
  --transition:  0.2s ease;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; }
img { max-width: 100%; display: block; }

/* ── Typography ────────────────────────────────────────────── */
.serif { font-family: 'Cormorant Garamond', serif; }
h1, h2, h3 { line-height: 1.2; font-weight: 600; }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.125rem; }

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-border); }

/* ──────────────────────────────────────────────────────────── */
/*  LOGIN PAGE                                                   */
/* ──────────────────────────────────────────────────────────── */
.login-page { overflow: hidden; }

.login-container {
  display: grid;
  grid-template-columns: 480px 1fr;
  min-height: 100vh;
}

/* Left panel — form */
.login-panel {
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 56px;
  position: relative;
  z-index: 2;
  border-right: 1px solid var(--gold-border);
}

.login-logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 52px;
}
.login-logo-text .brand-name {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
}
.login-logo-text .brand-sub {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  color: var(--text-2);
  text-transform: uppercase;
  margin-top: 2px;
}

.login-heading { font-family: 'Cormorant Garamond', serif; font-size: 2.2rem; font-weight: 500; color: var(--text); margin-bottom: 6px; }
.login-sub { font-size: 0.875rem; color: var(--text-2); margin-bottom: 40px; }

.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); margin-bottom: 8px; }
.form-input {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 13px 16px;
  border-radius: var(--r);
  font-size: 0.9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-input:focus {
  border-color: var(--gold-border);
  box-shadow: 0 0 0 3px rgba(201,168,122,0.08);
}
.form-input::placeholder { color: var(--text-3); }

.form-row { display: flex; gap: 14px; }
.form-row .form-group { flex: 1; }

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}
.checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--text-2); cursor: pointer; }
.checkbox-label input[type="checkbox"] { accent-color: var(--gold); width: 14px; height: 14px; }
.forgot-link { font-size: 0.8rem; color: var(--gold); opacity: 0.8; transition: opacity var(--transition); }
.forgot-link:hover { opacity: 1; }

.btn-primary {
  background: var(--gold);
  color: #0c1018;
  padding: 13px 24px;
  border-radius: var(--r);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-primary:hover { background: var(--gold-light); box-shadow: 0 4px 20px rgba(201,168,122,0.3); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-full { width: 100%; justify-content: center; }

.btn-secondary {
  background: var(--bg-3);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 11px 22px;
  border-radius: var(--r);
  font-size: 0.85rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background var(--transition), border-color var(--transition);
}
.btn-secondary:hover { background: var(--bg-hover); border-color: var(--gold-border); }

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold-border);
  padding: 9px 20px;
  border-radius: var(--r);
  font-size: 0.82rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background var(--transition), border-color var(--transition);
}
.btn-outline:hover { background: var(--gold-dim); border-color: var(--gold); }

.btn-danger { background: rgba(224,88,88,0.12); color: var(--danger); border: 1px solid rgba(224,88,88,0.25); padding: 9px 18px; border-radius: var(--r); font-size: 0.82rem; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; transition: background var(--transition); }
.btn-danger:hover { background: rgba(224,88,88,0.2); }

.login-demo-note { margin-top: 28px; text-align: center; font-size: 0.75rem; color: var(--text-3); }
.demo-badge {
  display: inline-block;
  background: var(--gold-dim);
  color: var(--gold);
  border: 1px solid var(--gold-border);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  padding: 3px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* Right panel — branding */
.login-brand {
  position: relative;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 60px 64px;
  overflow: hidden;
}
.login-brand-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(201,168,122,0.07) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(201,168,122,0.04) 0%, transparent 50%);
  pointer-events: none;
}
.login-brand-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.3;
  pointer-events: none;
}
.brand-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 4.5rem;
  font-weight: 400;
  line-height: 1.0;
  color: var(--gold);
  opacity: 0.85;
  position: relative;
  margin-bottom: 24px;
}
.brand-headline em { font-style: italic; color: var(--text); opacity: 0.9; }
.brand-desc { font-size: 0.9rem; color: var(--text-2); line-height: 1.7; max-width: 420px; margin-bottom: 40px; position: relative; }
.brand-pills { display: flex; flex-wrap: wrap; gap: 10px; position: relative; }
.brand-pill {
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  color: var(--gold-light);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  padding: 7px 14px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.brand-pill-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); display: inline-block; }
.brand-location { position: absolute; top: 40px; right: 40px; text-align: right; position: absolute; }
.brand-location-text { font-size: 0.7rem; letter-spacing: 0.2em; color: var(--text-3); text-transform: uppercase; }
.brand-location-city { font-size: 0.85rem; color: var(--gold); opacity: 0.7; letter-spacing: 0.1em; }

/* ──────────────────────────────────────────────────────────── */
/*  APP LAYOUT (sidebar pages)                                  */
/* ──────────────────────────────────────────────────────────── */
.app-layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
}

/* ── Sidebar ────────────────────────────────────────────────── */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
}

.sidebar-logo {
  padding: 24px 24px 20px;
  border-bottom: 1px solid var(--border);
}
.sidebar-logo a { display: flex; align-items: center; gap: 12px; }
.sidebar-brand-name {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--gold);
  text-transform: uppercase;
}
.sidebar-brand-sub {
  display: block;
  font-size: 0.6rem;
  color: var(--text-3);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 1px;
}

.sidebar-section-label {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 20px 24px 8px;
}

.sidebar-nav { flex: 1; padding: 8px 12px; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  color: var(--text-2);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
  margin-bottom: 2px;
  position: relative;
}
.nav-item:hover { background: var(--bg-3); color: var(--text); }
.nav-item.active { background: var(--gold-dim); color: var(--gold); }
.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 20px;
  background: var(--gold);
  border-radius: 0 2px 2px 0;
}
.nav-icon { width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nav-icon svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-badge { margin-left: auto; background: var(--gold); color: #0c1018; font-size: 0.65rem; font-weight: 700; padding: 1px 7px; border-radius: 10px; }

.sidebar-divider { height: 1px; background: var(--border); margin: 8px 12px; }

.sidebar-footer { padding: 16px 16px 20px; border-top: 1px solid var(--border); }
.sidebar-user { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; margin-bottom: 8px; }
.user-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 600; color: var(--gold);
  flex-shrink: 0;
}
.user-name { font-size: 0.82rem; font-weight: 600; color: var(--text); }
.user-role { font-size: 0.68rem; color: var(--text-2); margin-top: 1px; }
.logout-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 8px;
  color: var(--text-2); font-size: 0.8rem;
  transition: background var(--transition), color var(--transition);
  width: 100%;
}
.logout-btn:hover { background: rgba(224,88,88,0.08); color: var(--danger); }
.logout-btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; }

/* ── Main Content Area ──────────────────────────────────────── */
.main-content {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0; z-index: 50;
  height: var(--topbar-h);
  background: rgba(12,16,24,0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 32px;
  gap: 16px;
}
.topbar-title { font-size: 1rem; font-weight: 600; color: var(--text); flex: 1; }
.topbar-breadcrumb { font-size: 0.75rem; color: var(--text-2); }
.topbar-breadcrumb span { color: var(--gold); }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.topbar-badge-pill {
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
}
.icon-btn {
  width: 36px; height: 36px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2);
  transition: background var(--transition), color var(--transition);
  position: relative;
}
.icon-btn:hover { background: var(--bg-hover); color: var(--text); }
.icon-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.notif-dot { position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; background: var(--gold); border-radius: 50%; border: 1.5px solid var(--bg-2); }

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

.page-header { margin-bottom: 28px; }
.page-title { font-family: 'Cormorant Garamond', serif; font-size: 2rem; font-weight: 500; color: var(--text); }
.page-title span { color: var(--gold); }
.page-subtitle { font-size: 0.85rem; color: var(--text-2); margin-top: 4px; }

/* ── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}
.card-header { padding: 20px 24px 0; display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.card-title { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); }
.card-body { padding: 0 24px 24px; }

/* ── Stat Cards ─────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px 22px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition);
}
.stat-card:hover { border-color: var(--gold-border); }
.stat-card::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 60px; height: 60px;
  background: radial-gradient(circle, var(--gold-dim), transparent 70%);
  border-radius: 50%;
}
.stat-icon {
  width: 36px; height: 36px;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  color: var(--gold);
}
.stat-icon svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.stat-value { font-family: 'Cormorant Garamond', serif; font-size: 2.2rem; font-weight: 600; color: var(--text); line-height: 1; margin-bottom: 4px; }
.stat-label { font-size: 0.75rem; color: var(--text-2); }
.stat-change { font-size: 0.7rem; margin-top: 6px; display: flex; align-items: center; gap: 4px; }
.stat-change.up { color: var(--success); }
.stat-change.neutral { color: var(--text-2); }

/* ── Amenity Grid (Dashboard) ───────────────────────────────── */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.amenity-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 24px;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}
.amenity-card:hover {
  border-color: var(--gold-border);
  background: var(--bg-3);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.amenity-card::before {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 80px; height: 80px;
  background: radial-gradient(circle, rgba(201,168,122,0.06), transparent 70%);
  pointer-events: none;
}
.amenity-icon-wrap {
  width: 48px; height: 48px;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  color: var(--gold);
}
.amenity-icon-wrap svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.amenity-name { font-size: 0.95rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.amenity-floor { font-size: 0.72rem; color: var(--text-2); margin-bottom: 12px; }
.amenity-status { display: inline-flex; align-items: center; gap: 5px; font-size: 0.7rem; padding: 3px 10px; border-radius: 20px; }
.status-operational { background: rgba(76,175,120,0.1); color: var(--success); border: 1px solid rgba(76,175,120,0.2); }
.status-issue { background: rgba(224,88,88,0.1); color: var(--danger); border: 1px solid rgba(224,88,88,0.2); }
.status-maintenance { background: rgba(224,160,48,0.1); color: var(--warn); border: 1px solid rgba(224,160,48,0.2); }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.amenity-report-hint {
  position: absolute;
  bottom: 16px; right: 16px;
  font-size: 0.68rem;
  color: var(--text-3);
  opacity: 0;
  transition: opacity var(--transition);
}
.amenity-card:hover .amenity-report-hint { opacity: 1; color: var(--gold); }

/* Recent Activity */
.activity-list { display: flex; flex-direction: column; gap: 0; }
.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.activity-item:last-child { border-bottom: none; }
.activity-item:hover { background: var(--bg-3); }
.activity-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}
.activity-text { font-size: 0.83rem; color: var(--text); flex: 1; line-height: 1.5; }
.activity-time { font-size: 0.72rem; color: var(--text-2); white-space: nowrap; }

/* Announcements */
.announcement-card {
  background: linear-gradient(135deg, var(--bg-2), var(--bg-3));
  border: 1px solid var(--gold-border);
  border-radius: var(--r);
  padding: 20px 24px;
  position: relative;
  overflow: hidden;
}
.announcement-card::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(201,168,122,0.1), transparent 70%);
}
.announcement-tag { font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.announcement-title { font-size: 0.95rem; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.announcement-body { font-size: 0.82rem; color: var(--text-2); line-height: 1.5; }

/* ──────────────────────────────────────────────────────────── */
/*  REPORT ISSUE PAGE                                           */
/* ──────────────────────────────────────────────────────────── */
.report-layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }

.issue-form-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.issue-form-header {
  padding: 28px 32px 24px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, var(--bg-2), var(--bg-3));
}
.issue-form-header h2 { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-weight: 500; }
.issue-form-header p { font-size: 0.82rem; color: var(--text-2); margin-top: 4px; }
.issue-form-body { padding: 28px 32px; }

.form-select {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 13px 16px;
  border-radius: var(--r);
  font-size: 0.9rem;
  transition: border-color var(--transition);
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a7f74' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}
.form-select:focus { border-color: var(--gold-border); }

.form-textarea {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 13px 16px;
  border-radius: var(--r);
  font-size: 0.9rem;
  resize: vertical;
  min-height: 120px;
  transition: border-color var(--transition);
  outline: none;
  line-height: 1.6;
}
.form-textarea:focus { border-color: var(--gold-border); }
.form-textarea::placeholder { color: var(--text-3); }

.priority-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.priority-option { position: relative; }
.priority-option input[type="radio"] { position: absolute; opacity: 0; }
.priority-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 10px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  text-align: center;
}
.priority-label:hover { background: var(--bg-3); }
.priority-option input:checked + .priority-label { border-color: var(--gold-border); background: var(--gold-dim); }
.priority-emoji { font-size: 1.2rem; }
.priority-text { font-size: 0.75rem; font-weight: 500; color: var(--text-2); }

.photo-upload {
  border: 2px dashed var(--border);
  border-radius: var(--r);
  padding: 28px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.photo-upload:hover { border-color: var(--gold-border); background: var(--gold-dim); }
.photo-upload-icon { color: var(--text-3); margin-bottom: 8px; }
.photo-upload-icon svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.photo-upload-text { font-size: 0.82rem; color: var(--text-2); }
.photo-upload-sub { font-size: 0.7rem; color: var(--text-3); margin-top: 3px; }

.issue-sidebar-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  position: sticky;
  top: calc(var(--topbar-h) + 20px);
}
.issue-sidebar-header { padding: 20px 22px; border-bottom: 1px solid var(--border); }
.issue-sidebar-header h3 { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); }
.issue-sidebar-body { padding: 20px 22px; }
.amenity-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--bg-3);
  border-radius: 10px;
  margin-bottom: 16px;
}
.amenity-preview-icon {
  width: 40px; height: 40px;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-size: 1.2rem;
  flex-shrink: 0;
}
.amenity-preview-name { font-size: 0.88rem; font-weight: 600; }
.amenity-preview-floor { font-size: 0.72rem; color: var(--text-2); }

.open-issues-list { display: flex; flex-direction: column; gap: 8px; }
.open-issue-item {
  padding: 12px 14px;
  background: var(--bg-3);
  border-radius: 8px;
  border-left: 3px solid var(--warn);
}
.open-issue-item.resolved { border-left-color: var(--success); }
.open-issue-title { font-size: 0.8rem; font-weight: 500; color: var(--text); }
.open-issue-meta { font-size: 0.68rem; color: var(--text-2); margin-top: 3px; }

/* ──────────────────────────────────────────────────────────── */
/*  CAFÉ PAGE                                                   */
/* ──────────────────────────────────────────────────────────── */
.cafe-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }

.cafe-hero {
  background: linear-gradient(135deg, var(--bg-2) 0%, var(--bg-3) 100%);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-lg);
  padding: 28px 32px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cafe-hero::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(201,168,122,0.08), transparent 70%);
}
.cafe-hero-title { font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; font-weight: 500; color: var(--text); margin-bottom: 4px; }
.cafe-hero-title span { color: var(--gold); }
.cafe-hero-sub { font-size: 0.82rem; color: var(--text-2); }
.cafe-hero-badge {
  flex-shrink: 0;
  text-align: center;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  padding: 14px 20px;
  border-radius: 12px;
}
.cafe-hero-status { font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); }
.cafe-hero-hours { font-size: 1.1rem; font-weight: 600; color: var(--text); margin-top: 4px; }

.cafe-tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.cafe-tab {
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-2);
  background: var(--bg-2);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
}
.cafe-tab.active { background: var(--gold-dim); border-color: var(--gold-border); color: var(--gold); }
.cafe-tab:hover:not(.active) { background: var(--bg-3); color: var(--text); }

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.menu-item-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}
.menu-item-card:hover { border-color: var(--gold-border); transform: translateY(-1px); }
.menu-item-img {
  height: 130px;
  background: var(--bg-3);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}
.menu-item-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 50%, rgba(12,16,24,0.4)); }
.menu-item-body { padding: 14px; }
.menu-item-name { font-size: 0.9rem; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.menu-item-desc { font-size: 0.75rem; color: var(--text-2); margin-bottom: 12px; line-height: 1.4; }
.menu-item-footer { display: flex; align-items: center; justify-content: space-between; }
.menu-item-price { font-size: 0.95rem; font-weight: 600; color: var(--gold); }
.menu-item-price span { font-size: 0.68rem; font-weight: 400; color: var(--text-2); }
.add-btn {
  width: 30px; height: 30px;
  background: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #0c1018;
  font-size: 1rem;
  font-weight: 700;
  transition: background var(--transition), transform var(--transition);
  flex-shrink: 0;
}
.add-btn:hover { background: var(--gold-light); transform: scale(1.1); }

/* Cart sidebar */
.cart-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  position: sticky;
  top: calc(var(--topbar-h) + 20px);
}
.cart-header { padding: 18px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.cart-title { font-size: 0.85rem; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 8px; }
.cart-count { background: var(--gold); color: #0c1018; font-size: 0.65rem; font-weight: 700; padding: 1px 7px; border-radius: 10px; }
.cart-empty { padding: 32px 20px; text-align: center; }
.cart-empty-icon { font-size: 2rem; margin-bottom: 8px; opacity: 0.4; }
.cart-empty-text { font-size: 0.8rem; color: var(--text-2); }
.cart-items { padding: 12px 16px; max-height: 300px; overflow-y: auto; }
.cart-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.cart-item:last-child { border-bottom: none; }
.cart-item-emoji { font-size: 1.4rem; width: 36px; text-align: center; }
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 0.82rem; font-weight: 500; color: var(--text); }
.cart-item-price { font-size: 0.75rem; color: var(--gold); margin-top: 1px; }
.cart-item-controls { display: flex; align-items: center; gap: 6px; }
.qty-btn { width: 22px; height: 22px; background: var(--bg-3); border-radius: 4px; font-size: 0.85rem; color: var(--text-2); display: flex; align-items: center; justify-content: center; transition: background var(--transition); }
.qty-btn:hover { background: var(--bg-hover); color: var(--text); }
.qty-num { font-size: 0.8rem; font-weight: 500; width: 18px; text-align: center; }
.cart-footer { padding: 16px 16px 20px; border-top: 1px solid var(--border); }
.cart-total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.cart-total-label { font-size: 0.78rem; color: var(--text-2); }
.cart-total-amount { font-size: 1.1rem; font-weight: 700; color: var(--gold); }
.cart-note { font-size: 0.72rem; color: var(--text-2); text-align: center; margin-top: 10px; }

/* ──────────────────────────────────────────────────────────── */
/*  MEETING ROOMS PAGE                                          */
/* ──────────────────────────────────────────────────────────── */
.rooms-layout { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }

.room-tabs { display: flex; gap: 12px; margin-bottom: 24px; }
.room-tab-card {
  flex: 1;
  background: var(--bg-2);
  border: 2px solid var(--border);
  border-radius: var(--r);
  padding: 18px 20px;
  cursor: pointer;
  transition: all var(--transition);
}
.room-tab-card:hover { border-color: var(--gold-border); }
.room-tab-card.active { border-color: var(--gold); background: var(--gold-dim); }
.room-tab-floor { font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-2); margin-bottom: 4px; }
.room-tab-name { font-size: 0.95rem; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.room-tab-cap { font-size: 0.75rem; color: var(--text-2); }
.room-tab-card.active .room-tab-name { color: var(--gold); }

.booking-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.booking-date-nav { display: flex; align-items: center; gap: 12px; }
.date-nav-btn { width: 32px; height: 32px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--text-2); transition: all var(--transition); }
.date-nav-btn:hover { background: var(--bg-3); border-color: var(--gold-border); color: var(--text); }
.date-nav-btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }
.current-date { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.current-date-sub { font-size: 0.72rem; color: var(--text-2); }

.slots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.slot {
  padding: 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
  transition: all var(--transition);
  position: relative;
}
.slot:hover:not(.booked) { border-color: var(--gold-border); background: var(--bg-3); }
.slot.selected { border-color: var(--gold); background: var(--gold-dim); }
.slot.booked { opacity: 0.4; cursor: not-allowed; }
.slot.booked::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, transparent, transparent 4px, rgba(255,255,255,0.02) 4px, rgba(255,255,255,0.02) 8px); border-radius: 9px; }
.slot-time { font-size: 0.82rem; font-weight: 600; color: var(--text); }
.slot-duration { font-size: 0.65rem; color: var(--text-2); margin-top: 2px; }
.slot.selected .slot-time { color: var(--gold); }
.slot.booked .slot-time { color: var(--text-3); }

.slot-legend { display: flex; gap: 20px; font-size: 0.72rem; color: var(--text-2); margin-bottom: 20px; }
.legend-item { display: flex; align-items: center; gap: 6px; }
.legend-dot { width: 8px; height: 8px; border-radius: 2px; }
.legend-dot.available { background: var(--bg-3); border: 1px solid var(--border); }
.legend-dot.selected-d { background: var(--gold); }
.legend-dot.booked-d { background: var(--text-3); }

/* Booking summary sidebar */
.booking-summary {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  position: sticky;
  top: calc(var(--topbar-h) + 20px);
}
.booking-summary-header { padding: 18px 20px; border-bottom: 1px solid var(--border); }
.booking-summary-header h3 { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); }
.booking-summary-body { padding: 20px; }
.booking-detail-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.booking-detail-row:last-of-type { border-bottom: none; }
.booking-detail-label { font-size: 0.75rem; color: var(--text-2); }
.booking-detail-value { font-size: 0.82rem; font-weight: 500; color: var(--text); }
.booking-empty { text-align: center; padding: 24px 0; color: var(--text-2); font-size: 0.82rem; }
.booking-empty-icon { font-size: 1.8rem; margin-bottom: 8px; opacity: 0.4; }

/* ──────────────────────────────────────────────────────────── */
/*  MODALS                                                      */
/* ──────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  width: 100%;
  max-width: 460px;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.25s ease;
  overflow: hidden;
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-header {
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.modal-title { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 500; }
.modal-subtitle { font-size: 0.78rem; color: var(--text-2); margin-top: 3px; }
.modal-close { width: 30px; height: 30px; border-radius: 6px; background: var(--bg-3); display: flex; align-items: center; justify-content: center; color: var(--text-2); transition: all var(--transition); flex-shrink: 0; }
.modal-close:hover { background: var(--bg-hover); color: var(--text); }
.modal-close svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }
.modal-body { padding: 24px 28px; }
.modal-footer { padding: 0 28px 24px; display: flex; gap: 10px; justify-content: flex-end; }

/* Success state */
.success-state { text-align: center; padding: 12px 0; }
.success-icon {
  width: 64px; height: 64px;
  background: rgba(76,175,120,0.12);
  border: 1px solid rgba(76,175,120,0.25);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  color: var(--success);
}
.success-icon svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 2; }
.success-title { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; margin-bottom: 8px; }
.success-message { font-size: 0.85rem; color: var(--text-2); line-height: 1.6; }
.success-ref { display: inline-block; background: var(--bg-3); border: 1px solid var(--border); padding: 6px 14px; border-radius: 6px; font-size: 0.75rem; font-family: monospace; color: var(--gold); margin-top: 12px; }

/* ──────────────────────────────────────────────────────────── */
/*  TOAST                                                       */
/* ──────────────────────────────────────────────────────────── */
.toast-container { position: fixed; bottom: 28px; right: 28px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  max-width: 360px;
  box-shadow: var(--shadow);
  pointer-events: all;
  transform: translateX(120%);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.toast.show { transform: translateX(0); }
.toast.hide { transform: translateX(120%); transition: transform 0.2s ease; }
.toast-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.toast-icon svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; }
.toast-success .toast-icon { background: rgba(76,175,120,0.12); color: var(--success); }
.toast-error .toast-icon { background: rgba(224,88,88,0.12); color: var(--danger); }
.toast-info .toast-icon { background: var(--gold-dim); color: var(--gold); }
.toast-body { flex: 1; }
.toast-title { font-size: 0.83rem; font-weight: 600; color: var(--text); }
.toast-msg { font-size: 0.75rem; color: var(--text-2); margin-top: 1px; }
.toast-close { color: var(--text-2); padding: 2px; transition: color var(--transition); }
.toast-close:hover { color: var(--text); }
.toast-close svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ──────────────────────────────────────────────────────────── */
/*  RESPONSIVE                                                  */
/* ──────────────────────────────────────────────────────────── */
.hamburger { display: none; width: 36px; height: 36px; background: var(--bg-3); border: 1px solid var(--border); border-radius: 8px; align-items: center; justify-content: center; color: var(--text-2); }
.hamburger svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }

@media (max-width: 1100px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .report-layout, .cafe-layout, .rooms-layout { grid-template-columns: 1fr; }
  .issue-sidebar-card, .cart-card, .booking-summary { position: static; }
}

@media (max-width: 900px) {
  .login-container { grid-template-columns: 1fr; }
  .login-brand { display: none; }
  .login-panel { padding: 48px 32px; }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  .sidebar.open { transform: translateX(0); box-shadow: var(--shadow); }
  .main-content { margin-left: 0; }
  .hamburger { display: flex; }
  .sidebar-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 99; display: none; }
  .sidebar-overlay.visible { display: block; }
  .slots-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
  .page-content { padding: 20px 16px; }
  .amenities-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .slots-grid { grid-template-columns: repeat(2, 1fr); }
  .cafe-tabs { flex-wrap: wrap; }
  .brand-headline { font-size: 2.8rem; }
  .room-tabs { flex-direction: column; }
  .menu-grid { grid-template-columns: 1fr; }
}

/* ── Utility ────────────────────────────────────────────────── */
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-2); }
.text-sm { font-size: 0.82rem; }
.text-xs { font-size: 0.72rem; }
.font-semibold { font-weight: 600; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.w-full { width: 100%; }
.hidden { display: none !important; }
