/* ─────────────────────────────────────────────────────────────
   iCAM GET Portal — Shared CSS
   Topbar + Day Navigation + Base resets
───────────────────────────────────────────────────────────── */

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

body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ── TOPBAR ─────────────────────────────────────────────────── */
#topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #111 !important;
  border-bottom: 1px solid #222;
  width: 100%;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 52px;
  max-width: 100%;
}

.topbar-left { display: flex; align-items: center; gap: 16px; }
.topbar-right { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.topbar-logo {
  font-size: 18px;
  font-weight: 900;
  color: #e63b2e;
  letter-spacing: -0.5px;
}

.topbar-prog {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  font-weight: 500;
  letter-spacing: 0.5px;
  border-left: 1px solid #333;
  padding-left: 10px;
  display: none;
}
@media (min-width: 480px) { .topbar-prog { display: inline; } }

.topbar-back {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
  white-space: nowrap;
}
.topbar-back:hover { color: #fff; }

.topbar-user {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: none;
}
@media (min-width: 560px) { .topbar-user { display: inline; } }

.topbar-logout {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  padding: 5px 10px;
  border: 1px solid #333;
  border-radius: 3px;
  transition: all 0.15s;
  font-weight: 500;
  white-space: nowrap;
}
.topbar-logout:hover { color: #fff; border-color: #555; background: #222; }

body.has-topbar { padding-top: 0; }

/* ── DAY NAV ────────────────────────────────────────────────── */
#daynav {
  background: #1a1a1a;
  border-bottom: 1px solid #2a2a2a;
  width: 100%;
  position: sticky;
  top: 52px;
  z-index: 90;
}

.daynav-inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  height: 48px;
  max-width: 100%;
}

.daynav-prev,
.daynav-next {
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 38%;
}

.daynav-next { justify-content: flex-end; }

.daynav-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  text-decoration: none;
  color: rgba(255,255,255,0.55);
  font-size: 13px;
  height: 100%;
  transition: all 0.15s;
  cursor: pointer;
}
.daynav-btn:hover { color: #fff; background: rgba(255,255,255,0.05); }
.daynav-btn.disabled { opacity: 0.25; cursor: default; pointer-events: none; }

.daynav-arrow {
  font-size: 16px;
  color: rgba(255,255,255,0.3);
  flex-shrink: 0;
}

.daynav-label {
  display: flex;
  flex-direction: column;
  gap: 1px;
  overflow: hidden;
}

.daynav-daynum {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  line-height: 1;
}

.daynav-title {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
  line-height: 1.2;
  display: none;
}
@media (min-width: 560px) { .daynav-title { display: block; } }

.daynav-center {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  padding: 0 12px;
}

.daynav-dashboard {
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  color: rgba(255,255,255,0.45);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border: 1px solid #333;
  border-radius: 3px;
  transition: all 0.15s;
  white-space: nowrap;
}
.daynav-dashboard:hover { color: #fff; border-color: #555; background: #222; }

.daynav-dash-icon {
  font-size: 14px;
  line-height: 1;
}

.daynav-current {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  font-weight: 500;
  white-space: nowrap;
  display: none;
}
@media (min-width: 640px) { .daynav-current { display: inline; } }

.daynav-week {
  color: rgba(255,255,255,0.2);
}

/* ── CSS VARIABLES ──────────────────────────────────────────── */
:root {
  --red:   #e63b2e;
  --green: #2e7d32;
  --dark:  #111111;
  --light: #f2f2f2;
  --white: #ffffff;
  --border: #e0e0e0;
  --text:  #333333;
  --muted: #888888;
}
