/* Hotelzz Traveler/User Portal CSS Stylesheet */
:root {
  --user-primary: #2563EB;
  --user-primary-hover: #1D4ED8;
  --user-primary-light: #EFF6FF;
  --user-bg: #F8FAFC;
  --user-card-bg: #FFFFFF;
  --user-sidebar-bg: #FFFFFF;
  --user-border: #E2E8F0;
  --user-text-main: #0F172A;
  --user-text-muted: #64748B;
  --user-text-light: #94A3B8;

  --badge-sent: #2563EB;
  --badge-opened: #D97706;
  --badge-responded: #10B981;
  --badge-converted: #059669;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
}

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

body.user-body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--user-bg);
  color: var(--user-text-main);
  line-height: 1.5;
  font-size: 14px;
  min-height: 100vh;
  overflow-x: hidden;
}

.user-shell {
  display: flex;
  min-height: 100vh;
  position: relative;
}

/* Sidebar */
.user-sidebar {
  width: 260px;
  background-color: var(--user-sidebar-bg);
  border-right: 1px solid var(--user-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; bottom: 0; left: 0;
  z-index: 100;
  transition: transform 0.3s ease;
}

.sidebar-header {
  height: 64px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--user-border);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--user-text-main);
}

.brand-icon {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, #2563EB, #1D4ED8);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: #FFF; font-size: 18px;
}

.brand-text { font-weight: 800; font-size: 18px; color: var(--user-text-main); letter-spacing: -0.4px; }
.brand-badge { font-size: 10px; font-weight: 700; background: #EFF6FF; color: #2563EB; border: 1px solid #BFDBFE; padding: 2px 6px; border-radius: 4px; }

.user-nav { flex: 1; padding: 16px 12px; overflow-y: auto; }
.user-nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  color: var(--user-text-muted);
  text-decoration: none;
  font-weight: 500; font-size: 13.5px;
  border-radius: 8px;
  margin-bottom: 3px;
  transition: all 0.2s;
  cursor: pointer;
}

.user-nav-item:hover { background: var(--user-bg); color: var(--user-text-main); }
.user-nav-item.active { background: #EFF6FF; color: #2563EB; font-weight: 700; border-left: 3px solid #2563EB; border-radius: 4px 8px 8px 4px; }
.user-nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }

.sidebar-user-card {
  padding: 14px 16px;
  border-top: 1px solid var(--user-border);
  display: flex; align-items: center; gap: 10px;
  background: #FAFAFA;
}

.user-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #2563EB, #3B82F6);
  color: #FFF; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
}

/* Main Content */
.user-main {
  flex: 1;
  margin-left: 260px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.user-header {
  height: 64px;
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--user-border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px;
  position: sticky; top: 0; z-index: 90;
  box-shadow: var(--shadow-sm);
}

.user-body-content { flex: 1; padding: 28px 32px; }

.user-page-view { display: none; }
.user-page-view.active { display: block; }

/* Welcome Banner */
.user-welcome-card {
  background: linear-gradient(135deg, #1E40AF 0%, #2563EB 100%);
  color: #FFF;
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 24px;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 6px 16px rgba(37,99,235,0.25);
}

.user-welcome-card h2 { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.user-welcome-card p { color: rgba(255,255,255,0.9); font-size: 14px; }

/* KPI Grid */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; margin-bottom: 24px; }
.kpi-card {
  background: var(--user-card-bg);
  border: 1px solid var(--user-border);
  border-radius: var(--radius-lg);
  padding: 18px; box-shadow: var(--shadow-sm);
}
.kpi-label { font-size: 12.5px; font-weight: 600; color: var(--user-text-muted); margin-bottom: 4px; }
.kpi-value { font-size: 24px; font-weight: 800; color: var(--user-text-main); letter-spacing: -0.5px; }

/* Enquiries List Cards */
.enquiry-card {
  background: #FFF;
  border: 1px solid var(--user-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s, box-shadow 0.15s;
}
.enquiry-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.enquiry-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.enquiry-hotel-title { font-size: 17px; font-weight: 800; color: var(--user-text-main); }
.enquiry-stay-dates { font-size: 13px; color: var(--user-text-muted); margin-top: 2px; }

/* Status Timeline */
.status-timeline { margin-top: 14px; border-top: 1px solid var(--user-border); padding-top: 12px; }
.timeline-step { display: flex; align-items: center; gap: 10px; font-size: 12.5px; margin-bottom: 6px; }
.timeline-dot { width: 8px; height: 8px; border-radius: 50%; background: #CBD5E1; }
.timeline-step.completed .timeline-dot { background: #10B981; }

/* Badges */
.badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.badge-blue { background: #EFF6FF; color: #2563EB; border: 1px solid #BFDBFE; }
.badge-amber { background: #FEF3C7; color: #D97706; border: 1px solid #FDE68A; }
.badge-green { background: #D1FAE5; color: #059669; border: 1px solid #A7F3D0; }

/* Buttons */
.btn-primary {
  background: var(--user-primary); color: #FFF; border: none; padding: 9px 16px;
  border-radius: var(--radius-md); font-weight: 600; font-size: 13.5px;
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; transition: background 0.2s;
}
.btn-primary:hover { background: var(--user-primary-hover); }

.btn-secondary {
  background: #FFF; color: var(--user-text-main); border: 1px solid var(--user-border);
  padding: 9px 16px; border-radius: var(--radius-md); font-weight: 600; font-size: 13.5px;
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; transition: all 0.2s;
}
.btn-secondary:hover { background: var(--user-bg); border-color: #CBD5E1; }

/* Drawer & Modals */
.user-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 420px;
  background: #FFF; box-shadow: var(--shadow-lg); border-left: 1px solid var(--user-border);
  z-index: 500; transform: translateX(100%); transition: transform 0.3s ease;
  display: flex; flex-direction: column;
}
.user-drawer.open { transform: translateX(0); }

.user-modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15,23,42,0.6); backdrop-filter: blur(4px);
  z-index: 500; display: none; align-items: center; justify-content: center; padding: 20px;
}
.user-modal-overlay.show { display: flex; }
.user-modal { background: #FFF; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; max-width: 580px; max-height: 90vh; overflow-y: auto; }

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .user-sidebar { transform: translateX(-100%); }
  .user-sidebar.mobile-open { transform: translateX(0); }
  .user-main { margin-left: 0 !important; }
}

@media (max-width: 640px) {
  .user-body-content { padding: 16px; }
  .user-drawer { width: 100%; }
}
