/* Pitbay Center App — base.css */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --blue:   #1E5FBF;   /* brand deep blue (aligned with customer app) */
  --green:  #2e7d32;
  --red:    #c62828;
  --gold:   #f9a825;
  --navy:   #0b3f8a;   /* deep blue — dark boxes / selected */
  --orange: #e65100;

  --bg-primary:   #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-tertiary:  #f1f3f4;

  --text-primary:   #1a1a2e;
  --text-secondary: #5f6368;
  --text-tertiary:  #9aa0a6;

  --border-light:  #e8eaed;
  --border-medium: #dadce0;

  --shadow-sm: 0 1px 4px rgba(0,0,0,.08);
  --shadow-md: 0 2px 12px rgba(0,0,0,.12);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.15);

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;

  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   20px;
  --radius-pill: 100px;

  --font-xs:   12px;
  --font-sm:   13px;
  --font-base: 15px;
  --font-md:   17px;
  --font-lg:   19px;
  --font-xl:   22px;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: var(--font-base);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ── PHONE SHELL ── */
.phone-shell {
  width: 375px;
  min-height: 100vh;
  background: var(--bg-primary);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* ── STATUS BAR ── */
.status-bar {
  background: var(--navy);
  padding: 10px 18px 8px;
  display: flex;
  justify-content: space-between;
  flex-shrink: 0;
}
.status-bar span { font-size: 13px; color: #fff; font-weight: 500; }

/* ── SCREEN ── */
.screen {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--bg-primary);
}

/* ── HEADER ── */
.header {
  background: linear-gradient(135deg, #0b3f8a 0%, #1E5FBF 100%);
  padding: 14px 16px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-back {
  font-size: 20px;
  color: rgba(255,255,255,.85);
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  flex-shrink: 0;
}
.header-info { flex: 1; }
.header-title    { font-size: 17px; font-weight: 700; color: #fff; }
.header-subtitle { font-size: 12px; color: rgba(255,255,255,.75); margin-top: 1px; }
.header-action {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: none; color: #fff; font-size: 18px;
  flex-shrink: 0;
}
.header-action:active { background: rgba(255,255,255,.25); }

/* ── SCROLL AREA ── */
.scroll-area {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}
.scroll-area::-webkit-scrollbar { display: none; }

/* ── BOTTOM NAV ── */
.bottom-nav {
  display: flex;
  border-top: .5px solid var(--border-light);
  background: var(--bg-primary);
  flex-shrink: 0;
}

/* Floating "Clear alerts" button — sits above the bottom nav, bottom-right. */
.notif-clear-fab {
  position: absolute;
  right: 16px;
  bottom: 74px;
  z-index: 40;
  align-items: center; gap: 6px;
  padding: 11px 16px;
  border: none; border-radius: 24px;
  background: var(--blue); color: #fff;
  font-size: 15px; font-weight: 700;
  box-shadow: 0 4px 14px rgba(30, 95, 191, .4);
  cursor: pointer;
}
.notif-clear-fab:active { transform: scale(.96); }
.nav-btn {
  flex: 1;
  padding: 8px 4px 6px;
  text-align: center;
  cursor: pointer;
  border: none;
  background: none;
  font-size: 12px;
  color: var(--text-secondary);
  transition: color .15s;
}
.nav-btn.active { color: var(--navy); }
.nav-icon { font-size: 20px; display: block; margin-bottom: 2px; }

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(60px);
  background: #1a1a2e;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 22px;
  z-index: 999;
  transition: transform .22s;
  white-space: nowrap;
  pointer-events: none;
  max-width: 90vw;
  text-align: center;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ── SPINNER ── */
.spinner {
  width: 14px; height: 14px;
  border: 2px solid #bfdbfe;
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── PULSE ── */
.pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 1.2s infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.4; transform:scale(1.4); }
}

/* ── SECTION LABEL ── */
.section-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 8px;
}

/* ── DIVIDER ── */
.divider { display:flex; align-items:center; gap:8px; margin:10px 0; }
.divider-line { flex:1; height:.5px; background:var(--border-light); }
.divider-text { font-size: 11px; color:var(--text-tertiary); white-space:nowrap; }

/* ── UTILITIES ── */
.text-blue   { color: var(--blue); }
.text-green  { color: var(--green); }
.text-red    { color: var(--red); }
.text-gold   { color: var(--gold); }
.text-navy   { color: var(--navy); }
.text-orange { color: var(--orange); }
.text-muted  { color: var(--text-secondary); }
.text-xs     { font-size: var(--font-xs); }
.text-sm     { font-size: var(--font-sm); }
.text-bold   { font-weight: 700; }
.text-center { text-align: center; }
.flex        { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between{ display: flex; align-items: center; justify-content: space-between; }
.gap-4  { gap: 4px; }
.gap-6  { gap: 6px; }
.gap-8  { gap: 8px; }
.gap-10 { gap: 10px; }
.p-13   { padding: 0 13px; }
.mt-8   { margin-top: 8px; }
.mb-8   { margin-bottom: 8px; }
.hidden { display: none; }
