/* BoatEazy — Light Glass Theme v7 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #dde6ed;
  --glass-bg:     rgba(255,255,255,0.28);
  --glass-border: rgba(255,255,255,0.55);
  --glass-top:    rgba(255,255,255,0.75);
  --glass-shadow: 0 4px 20px rgba(0,0,0,0.07);
  --glass-inset:  inset 0 1px 0 rgba(255,255,255,0.70);
  --text-primary:   #1a2535;
  --text-secondary: #5a6a7a;
  --text-muted:     #9b9b9b;
  --gold:           #b8945a;
  --gold-light:     #d4a85a;
  --blue:           #4a7a96;
}

html { scroll-behavior: smooth; overflow-x: hidden; }
body { overflow-x: hidden; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--bg);
}

/* ══ Background ══ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 0% 0%,   rgba(184,205,216,0.70) 0%, transparent 65%),
    radial-gradient(ellipse 50% 45% at 100% 100%,rgba(209,209,209,0.55) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 85% 15%,  rgba(231,238,242,0.75) 0%, transparent 60%),
    radial-gradient(ellipse 35% 35% at 50% 60%,  rgba(184,205,216,0.30) 0%, transparent 60%),
    linear-gradient(160deg, #e2eaef 0%, #dde6ed 50%, #d8e2ea 100%);
  pointer-events: none;
}

/* ══ Wave lines ══ */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='520'%3E%3Cg fill='none' stroke='%234a7a96' stroke-width='1.2' stroke-linecap='round' opacity='0.14'%3E%3Cpath d='M-20 20 Q60 5 140 20 Q220 35 300 20 Q380 5 460 20 Q540 35 620 20 Q700 5 780 20'/%3E%3Cpath d='M-20 38 Q60 23 140 38 Q220 53 300 38 Q380 23 460 38 Q540 53 620 38 Q700 23 780 38'/%3E%3Cpath d='M-20 56 Q60 41 140 56 Q220 71 300 56 Q380 41 460 56 Q540 71 620 56 Q700 41 780 56'/%3E%3Cpath d='M-20 74 Q60 59 140 74 Q220 89 300 74 Q380 59 460 74 Q540 89 620 74 Q700 59 780 74'/%3E%3Cpath d='M-20 92 Q60 77 140 92 Q220 107 300 92 Q380 77 460 92 Q540 107 620 92 Q700 77 780 92'/%3E%3Cpath d='M-20 110 Q60 95 140 110 Q220 125 300 110 Q380 95 460 110 Q540 125 620 110 Q700 95 780 110'/%3E%3Cpath d='M-20 128 Q60 113 140 128 Q220 143 300 128 Q380 113 460 128 Q540 143 620 128 Q700 113 780 128'/%3E%3Cpath d='M-20 146 Q60 131 140 146 Q220 161 300 146 Q380 131 460 146 Q540 161 620 146 Q700 131 780 146'/%3E%3Cpath d='M-20 164 Q60 149 140 164 Q220 179 300 164 Q380 149 460 164 Q540 179 620 164 Q700 149 780 164'/%3E%3Cpath d='M-20 182 Q60 167 140 182 Q220 197 300 182 Q380 167 460 182 Q540 197 620 182 Q700 167 780 182'/%3E%3Cpath d='M-20 200 Q60 185 140 200 Q220 215 300 200 Q380 185 460 200 Q540 215 620 200 Q700 185 780 200'/%3E%3Cpath d='M-20 218 Q60 203 140 218 Q220 233 300 218 Q380 203 460 218 Q540 233 620 218 Q700 203 780 218'/%3E%3Cpath d='M-20 236 Q60 221 140 236 Q220 251 300 236 Q380 221 460 236 Q540 251 620 236 Q700 221 780 236'/%3E%3Cpath d='M-20 254 Q60 239 140 254 Q220 269 300 254 Q380 239 460 254 Q540 269 620 254 Q700 239 780 254'/%3E%3Cpath d='M-20 272 Q60 257 140 272 Q220 287 300 272 Q380 257 460 272 Q540 287 620 272 Q700 257 780 272'/%3E%3Cpath d='M-20 290 Q60 275 140 290 Q220 305 300 290 Q380 275 460 290 Q540 305 620 290 Q700 275 780 290'/%3E%3Cpath d='M-20 308 Q60 293 140 308 Q220 323 300 308 Q380 293 460 308 Q540 323 620 308 Q700 293 780 308'/%3E%3Cpath d='M-20 326 Q60 311 140 326 Q220 341 300 326 Q380 311 460 326 Q540 341 620 326 Q700 311 780 326'/%3E%3Cpath d='M-20 344 Q60 329 140 344 Q220 359 300 344 Q380 329 460 344 Q540 359 620 344 Q700 329 780 344'/%3E%3Cpath d='M-20 362 Q60 347 140 362 Q220 377 300 362 Q380 347 460 362 Q540 377 620 362 Q700 347 780 362'/%3E%3Cpath d='M-20 380 Q60 365 140 380 Q220 395 300 380 Q380 365 460 380 Q540 395 620 380 Q700 365 780 380'/%3E%3Cpath d='M-20 398 Q60 383 140 398 Q220 413 300 398 Q380 383 460 398 Q540 413 620 398 Q700 383 780 398'/%3E%3Cpath d='M-20 416 Q60 401 140 416 Q220 431 300 416 Q380 401 460 416 Q540 431 620 416 Q700 401 780 416'/%3E%3Cpath d='M-20 434 Q60 419 140 434 Q220 449 300 434 Q380 419 460 434 Q540 449 620 434 Q700 419 780 434'/%3E%3Cpath d='M-20 452 Q60 437 140 452 Q220 467 300 452 Q380 437 460 452 Q540 467 620 452 Q700 437 780 452'/%3E%3Cpath d='M-20 470 Q60 455 140 470 Q220 485 300 470 Q380 455 460 470 Q540 485 620 470 Q700 455 780 470'/%3E%3Cpath d='M-20 488 Q60 473 140 488 Q220 503 300 488 Q380 473 460 488 Q540 503 620 488 Q700 473 780 488'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
  pointer-events: none;
}

/* ══ App shell ══ */
.app-container {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
  padding: 12px;
  gap: 12px;
}

/* ══ Sidebar ══ */
.sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid var(--glass-border);
  border-top: 1px solid var(--glass-top);
  border-radius: 20px;
  box-shadow: var(--glass-shadow), var(--glass-inset);
  position: sticky;
  top: 12px;
  height: calc(100vh - 24px);
  display: flex;
  flex-direction: column;
  padding: 18px 12px;
  overflow: hidden;
  align-self: flex-start;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 20px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  margin-bottom: 12px;
}
.sidebar-logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 8px;
}
.sidebar-logo .logo-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.sidebar nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background 0.2s, color 0.2s;
  border: 1px solid transparent;
}
.sidebar nav a svg { opacity: 0.55; flex-shrink: 0; transition: opacity 0.2s; }
.sidebar nav a:hover { background: rgba(255,255,255,0.40); color: var(--text-primary); border-color: rgba(255,255,255,0.60); }
.sidebar nav a:hover svg { opacity: 0.80; }
.sidebar nav a.active {
  background: rgba(255,255,255,0.45);
  border: 1px solid rgba(255,255,255,0.65);
  border-top: 1px solid rgba(255,255,255,0.85);
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.80);
}
.sidebar nav a.active svg { opacity: 1; }

.sidebar-footer {
  padding-top: 14px;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.sidebar-footer a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s, background 0.2s;
}
.sidebar-footer a:hover { color: var(--text-primary); background: rgba(255,255,255,0.40); }

/* ══ Main area ══ */
.main-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* ══ Topbar ══ */
.topbar {
  height: 56px;
  background: var(--glass-bg);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid var(--glass-border);
  border-top: 1px solid var(--glass-top);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  margin-bottom: 16px;
  flex-shrink: 0;
  box-shadow: var(--glass-shadow), var(--glass-inset);
}

.topbar-resort { font-size: 13.5px; font-weight: 600; color: var(--text-primary); }
.topbar-right { display: flex; align-items: center; gap: 12px; }

.notif-btn {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: rgba(255,255,255,0.35);
  border: 1px solid rgba(255,255,255,0.60);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  cursor: pointer; text-decoration: none; position: relative;
  transition: background 0.15s;
}
.notif-btn:hover { background: rgba(255,255,255,0.55); color: var(--text-primary); }
.notif-badge {
  position: absolute; top: 5px; right: 5px;
  width: 7px; height: 7px;
  background: #e55; border-radius: 50%;
  border: 1.5px solid var(--bg);
}

.user-pill {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 12px 5px 5px;
  background: rgba(255,255,255,0.35);
  border: 1px solid rgba(255,255,255,0.60);
  border-radius: 20px;
  cursor: pointer; text-decoration: none;
  transition: background 0.15s;
}
.user-pill:hover { background: rgba(255,255,255,0.55); }
.user-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(26,37,53,0.10);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--text-primary);
}
.user-name { font-size: 12px; font-weight: 600; color: var(--text-primary); }

/* ══ Page content ══ */
.page-content { flex: 1; padding: 0; }

h1 { font-size: 22px; font-weight: 700; color: var(--text-primary); letter-spacing: -0.4px; margin-bottom: 20px; }
h2 { font-size: 15px; font-weight: 700; color: var(--text-primary); letter-spacing: -0.2px; margin-bottom: 14px; }

/* ══ Cards ══ */
.card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px) saturate(1.3);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  border: 1px solid var(--glass-border);
  border-top: 1px solid var(--glass-top);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--glass-shadow), var(--glass-inset);
}
.card-sm { padding: 16px; }

/* ══ Stats ══ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.stat-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-top: 1px solid var(--glass-top);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--glass-shadow), var(--glass-inset);
}
.stat-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: var(--text-muted); margin-bottom: 8px; }
.stat-value { font-size: 28px; font-weight: 700; color: var(--text-primary); letter-spacing: -0.5px; line-height: 1; }

/* ══ Forms ══ */
.form-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.form-group { display: flex; flex-direction: column; gap: 6px; min-width: 160px; flex: 1; }
label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); }

input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="date"], input[type="time"],
select, textarea {
  background: rgba(255,255,255,0.40);
  border: 1px solid rgba(255,255,255,0.65);
  border-top: 1px solid rgba(255,255,255,0.85);
  border-radius: 10px;
  padding: 9px 13px;
  font-family: inherit;
  font-size: 13px;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.04);
  width: 100%;
}
input::placeholder, textarea::placeholder { color: var(--text-muted); }
input:focus, select:focus, textarea:focus {
  border-color: rgba(74,122,150,0.50);
  box-shadow: 0 0 0 3px rgba(74,122,150,0.10), inset 0 1px 3px rgba(0,0,0,0.04);
  background: rgba(255,255,255,0.60);
}
select option { background: #e8eef2; color: var(--text-primary); }

button, .btn {
  background: var(--text-primary);
  border: none;
  border-radius: 11px;
  padding: 10px 20px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  box-shadow: 0 4px 14px rgba(26,37,53,0.20);
  white-space: nowrap;
}
button:hover { opacity: 0.85; }
button:active { transform: scale(0.98); }

/* ══ Tables ══ */
.table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid rgba(255,255,255,0.55); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead tr { background: rgba(255,255,255,0.30); border-bottom: 1px solid rgba(0,0,0,0.06); }
th { padding: 11px 14px; text-align: left; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); white-space: nowrap; }
td { padding: 11px 14px; color: var(--text-secondary); border-bottom: 1px solid rgba(0,0,0,0.04); vertical-align: middle; }
tbody tr:hover td { background: rgba(255,255,255,0.25); color: var(--text-primary); }
tbody tr:last-child td { border-bottom: none; }

/* ══ Badges ══ */
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.badge-success { background: rgba(22,163,74,0.12);  color: #16a34a; border: 1px solid rgba(22,163,74,0.22); }
.badge-warning { background: rgba(184,148,90,0.12); color: var(--gold); border: 1px solid rgba(184,148,90,0.22); }
.badge-danger  { background: rgba(220,38,38,0.10);  color: #dc2626; border: 1px solid rgba(220,38,38,0.20); }
.badge-info    { background: rgba(74,122,150,0.12); color: var(--blue); border: 1px solid rgba(74,122,150,0.22); }

/* ══ Notifications ══ */
.notif-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0; width: 320px;
  background: rgba(220,228,234,0.92);
  backdrop-filter: blur(40px) saturate(1.6);
  -webkit-backdrop-filter: blur(40px) saturate(1.6);
  border: 1px solid rgba(255,255,255,0.70);
  border-top: 1px solid rgba(255,255,255,0.90);
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.12);
  z-index: 200; overflow: hidden;
}
.notif-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 10px; border-bottom: 1px solid rgba(0,0,0,0.06); }
.notif-header h3 { font-size: 13px; font-weight: 700; color: var(--text-primary); }
.notif-item { display: flex; gap: 10px; padding: 11px 16px; border-bottom: 1px solid rgba(0,0,0,0.04); transition: background 0.15s; text-decoration: none; }
.notif-item:hover { background: rgba(255,255,255,0.30); }
.notif-item.unread { background: rgba(74,122,150,0.08); }
.notif-text { font-size: 12.5px; color: var(--text-secondary); line-height: 1.5; }
.notif-time { font-size: 11px; color: var(--text-muted); }

/* ══ Bottom nav ══ */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 12px; left: 12px; right: 12px;
  background: rgba(220,228,234,0.75);
  backdrop-filter: blur(32px) saturate(1.6);
  -webkit-backdrop-filter: blur(32px) saturate(1.6);
  border: 1px solid rgba(255,255,255,0.70);
  border-top: 1px solid rgba(255,255,255,0.90);
  border-radius: 18px;
  padding: 10px 8px;
  justify-content: space-around;
  z-index: 100;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.80);
}
.bottom-nav a {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  text-decoration: none; color: var(--text-muted);
  font-size: 10px; font-weight: 600;
  padding: 4px 10px; border-radius: 10px;
  transition: color 0.15s, background 0.15s;
}
.bottom-nav a.active { color: var(--text-primary); background: rgba(255,255,255,0.40); }
.bottom-nav a svg { opacity: 0.45; }
.bottom-nav a.active svg { opacity: 1; }

/* ══ Mobile ══ */
/* ══ Mobile ══ */
@media (max-width: 768px) {
  .app-container { padding: 0; gap: 0; }
  .sidebar { display: none; }
  .main-area { padding: 10px 10px 80px; max-width: 100vw; overflow-x: hidden; }
  .page-content { overflow-x: hidden; }
  .topbar { border-radius: 0; border-left: none; border-right: none; border-top: none; margin-bottom: 14px; }
  .bottom-nav { display: flex; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .form-row { flex-direction: column !important; }
  .form-row .form-group { width: 100% !important; min-width: unset !important; }
  [style*="display:grid"] { grid-template-columns: 1fr !important; }
  [style*="display: grid"] { grid-template-columns: 1fr !important; }
  .card { overflow-x: hidden; }
  table { display: block; overflow-x: auto; }
}
@media (min-width: 769px) { .bottom-nav { display: none !important; } }

/* ══ Scrollbar ══ */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.20); }

/* ══ Login page ══ */
body.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.login-card {
  width: 100%; max-width: 340px;
  border-radius: 24px; padding: 36px 30px;
  background: rgba(255,255,255,0.38);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border: 1px solid rgba(255,255,255,0.70);
  border-top: 1px solid rgba(255,255,255,0.90);
  box-shadow: 0 20px 60px rgba(0,0,0,0.10), inset 0 1px 0 rgba(255,255,255,0.85);
  position: relative; z-index: 1;
}
@media (max-width: 768px) {
  .card, input, select, textarea, button { 
    max-width: 100% !important;
    border-radius: 10px !important;
  }
  .page-content { max-width: 100vw; overflow-x: hidden; }
}
@media (max-width: 768px) {
  input[type="date"],
  input[type="time"] {
    width: auto !important;
    min-width: 150px;
    max-width: 100%;
  }
}