* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
  /* Isključuje plavi highlight na mobitelima kada se klikne */
  -webkit-tap-highlight-color: transparent; 
  /* Onemogućava selektovanje i kopiranje teksta u cijeloj aplikaciji */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  /* Onemogućava iOS "copy/look up" meni na dugi pritisak */
  -webkit-touch-callout: none;
}

/* Izuzetak: polja za unos moraju zadržati normalno selektovanje teksta da bi kucanje i uređivanje radili */
input, textarea {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

html, body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  /* Neutralna pozadina (ista kao pozadina ekrana) - notch/status bar je već
     riješen preko .top-bar pozadine i meta theme-color taga, tako da ovdje
     ne treba narandžasta (ona je izazivala "žuti flash" tokom animacija) */
  background: #F2F2F5;
  color: #1C1C1E;
  width: 100%;
  height: 100%;
  max-width: 428px;
  margin: 0 auto;
  /* ZAKLJUČAVA GLAVNI PROZOR - SPREČAVA CUTOFF I ODSKAKANJE CELOG SAJTA */
  overflow: hidden; 
}

/* Headings use Montserrat for a clean UI */
h1, h2, h3, h4, h5, h6, .page-title, .section-title {
  font-family: 'Montserrat', 'Inter', sans-serif;
}

/* DYNAMIC HEADER */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #ffb20d;
  border-radius: 0 0 18px 18px;
  z-index: 100;
  /* env(safe-area-inset-top) gura sadržaj ispod notch-a/status bara, dok pozadina i dalje ide skroz do vrha */
  padding: calc(35px + env(safe-area-inset-top)) 7.5px 20px;
  max-width: 428px;
  margin: 0 auto;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.06);
}

.top-bar.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
}

.top-nav {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
  position: relative;
}

.top-nav span {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 30px;
  line-height: 27px;
  letter-spacing: -1.08px;
  text-align: center;
  color: #1C1C1E;
  transition: opacity 0.2s ease;
  font-weight: 700;
}

#header-subtitle {
  font-family: 'Montserrat', monospace;
  font-size: 20px;
  font-weight: 700;
  margin-top: 2px;
  color: #1C1C1E;
  transition: opacity 0.2s ease;
}

#header-subtitle.hidden {
  display: none;
}

/* CONTENT PADDING - Ovdje je ključ za prostor ispod zadnje linije */
.content {
  max-width: 428px;
  margin: 0 auto;
  /* Dodajemo env(safe-area-inset-bottom) za iOS navigaciju na dnu */
  padding: 270px 7.5px calc(270px + env(safe-area-inset-bottom)) !important; 
}

.content.with-header {
  padding-top: 110px !important; /* Ovo je mjera da naslov stoji odmah ispod headera */
  padding-bottom: 100px !important;
}

/* Padding za ekran sa linijama - da naslov bude bliže listi */
#screen-lines .content {
  padding-top: 180px !important;
}

.page-title {
  font-size: 22px;
  font-weight: 700;
  color: #1C1C1E;
  margin-bottom: 12px; /* Manji razmak između naslova i liste */
  padding: 0 4px;
}

/* FAVORITE BUTTON - IST STIL KAO BACK BUTTON */
.favorite-btn {
  position: fixed;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  color: #1C1C1E;
  font-size: 20px;
  cursor: pointer;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.08);
}

.favorite-btn.active {
  background: #ffb20d;
  color: #fff;
}

.favorite-btn.hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8);
}

/* SEARCH BAR */
.search-container {
  position: relative;
  width: calc(100% - 15px);
  max-width: 413px;
  height: 50px;
  margin: 0 auto;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.search-container.hidden {
  display: none;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.2s ease;
}

.search-container input {
  width: 100%;
  height: 50px;
  padding: 16px 16px 16px 46px;
  background: #F2F2F5;
  border: 1.5px solid transparent;
  border-radius: 12px;
  color: #1C1C1E;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 18px;
  letter-spacing: -0.08px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-container input::placeholder {
  color: #8E8E93;
}

.search-container input:focus {
  outline: none;
  border-color: #ffb20d;
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

/* CALENDAR STRIP */
.calendar-strip {
  display: flex;
  gap: 10px;
  padding: 0 7.5px 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 12px auto 0;
  width: 100%;
  max-width: 428px;
}

.calendar-strip.hidden {
  display: none;
}

.calendar-strip::-webkit-scrollbar {
  display: none;
}

.calendar-day {
  min-width: 54px;
  height: 68px;
  background: #FFFFFF;
  border: 0px solid #db9500;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.calendar-day.active {
  background: #db9500;
  border-color: #db9500;
}

.calendar-day-number {
  font-family: 'Roboto Mono', monospace;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 2px;
  color: #ffb20d;
  transition: color 0.2s ease;
}

.calendar-day.active .calendar-day-number {
  color: white;
}

.calendar-day-name {
  font-size: 12px;
  opacity: 0.8;
  color: #ffb20d;
  transition: color 0.2s ease;
}

.calendar-day.active .calendar-day-name {
  color: white;
}

/* DIRECTION TOGGLE */
#directions-tabs-header {
  margin: 10px 7.5px 0;
  width: calc(100% - 15px);
  max-width: 413px;
}

#directions-tabs-header.hidden {
  display: none;
}

.direction-tab-header {
  display: flex;
  align-items: center;
  width: 100%;
  height: 52px;
  padding: 0 12px;
  background: #db9500;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.direction-tab-header:active {
  background: #db9500;
}

.direction-icon-header {
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  color: white;
  flex-shrink: 0;
}

.direction-icon-header svg {
  width: 15px;
  height: 15px;
  fill: white;
}

.direction-text-header {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}

.from-text-header {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  font-family: 'Inter', sans-serif;
}

.to-text-header {
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFF;
  font-family: 'Inter', sans-serif;
}

.hidden {
  display: none !important;
}

/* SCREENS - baza: fade (koristi se za glavne tabove: početna / raspored / info)
   Napomena: prije je ovdje bio i "grow" efekat (scale 0.98 -> 1) uz fade, ali to
   nije kako iOS zapravo mijenja glavne tabove (UITabBarController samo uradi
   instant crossfade, bez skaliranja) - skaliranje je djelovalo kao "vještački"
   dodatak. Sada je čist, brz crossfade bez transform-a i bez ikakvog bounce-a. */
.screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #F2F2F5;

  -webkit-transform: translateZ(0);
  backface-visibility: hidden;

  z-index: 1;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.22s ease-out,
              visibility 0s linear 0.22s;
  will-change: opacity;
}

.screen.active {
  z-index: 10;
  visibility: visible;
  opacity: 1;
  transition: opacity 0.22s ease-out;
}

/* Screen-ovi koji se "otvaraju preko" prethodnog ekrana (detalji linije, detalji
   polaska) - zadržavaju originalnu iOS push/slide-in animaciju zdesna, sada sa istom
   "Apple" krivuljom kao gore radi dosljednosti */
.screen.screen-push {
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1);
}

.screen.screen-push.active {
  transform: translateX(0);
  transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1),
              opacity 0.32s cubic-bezier(0.32, 0.72, 0, 1);
}

/* CONTENT PADDING */
/* Padding za sve ekrane osim onih koji trebaju specifičan */
.screen .content {
  padding: 130px 16px 120px 16px;
}

/* Specifičan padding SAMO za detalje linije */
#screen-line-detail .content {
  padding-top: 280px !important; 
  padding-bottom: 100px !important;
}

/* Sakrivanje scrollbara za SVE ekrane */
.screen {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.screen::-webkit-scrollbar {
  display: none;
}

/* Samo za početni ekran - spuštamo tabove niže */
#screen-home .content {
  padding-top: 165px !important; 
}

/* TRIP HEADER */
.trip-header {
  position: fixed;
  top: -4px;
  left: 0;
  right: 0;
  background: #FFFFFF;
  border-radius: 0 0 18px 18px;
  padding: calc(64px + env(safe-area-inset-top)) 20px 12px;
  max-width: 428px;
  margin: 0 auto;
  z-index: 50;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.trip-header-top {
  font-family: 'Montserrat', sans-serif;
  font-size: 30px;
  font-weight: 500;
  text-align: center;
  color: #1C1C1E;
  margin-bottom: 8px;
  font-weight: 700;
  letter-spacing: -1.08px;
}

.trip-header-line {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  color: #1C1C1E;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 10px;
  font-weight: 700;
}

.trip-header-date {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  text-align: center;
  color: #8E8E93;
  font-weight: 700;
}

.trip-content {
  padding-top: 180px !important;
}

/* BACK BUTTON - iOS style */
.back-btn {
  position: fixed;
  top: 16px;
  left: 16px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  color: #1C1C1E;
  font-size: 22px;
  cursor: pointer;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.08);
}

.back-btn.hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8);
}

/* SECTION TITLE */
h3.section-title {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 18px;
  letter-spacing: -0.08px;
  color: #6E6E73;
  margin-bottom: 9px;
  margin-left: 6px;
}

/* LINE ITEM */
.line-item {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 413px;
  height: 57px;
  padding: 0 16px;
  background: #FFFFFF;
  border-radius: 8px;
  margin: 0 auto 8px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03), 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: background 0.2s ease;
}

.line-item:active {
  background: #ECECEE;
}

/* Ako je .line-item zapravo <a> link (npr. eksterni linkovi, mailto), zadrži isti izgled kao div */
a.line-item {
  text-decoration: none;
  color: inherit;
}

.line-number {
  width: 38px;
  height: 38px;
  background: #E5E5EA;
  color: #1C1C1E;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Roboto Mono', monospace;
  font-weight: 700;
  font-size: 20px;
  line-height: 18px;
  letter-spacing: -0.08px;
  margin-right: 16px;
  flex-shrink: 0;
}

.line-item span {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 18px;
  letter-spacing: -0.08px;
  color: #1C1C1E;
}

/* DEPARTURE TIME CARD */
.departure-card {
  background: #FFFFFF;
  border-radius: 8px;
  padding: 14px 20px;
  margin: 0 auto 8px;
  width: calc(100% - 15px);
  max-width: 413px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03), 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: background 0.2s ease;
}

.departure-card:active {
  background: #ECECEE;
}

.departure-time-start {
  font-family: 'Roboto Mono', monospace;
  font-size: 20px;
  font-weight: 700;
  transition: color 0.2s ease;
}

.departure-separator {
  margin: 0 16px;
  font-size: 18px;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.departure-time-end {
  font-family: 'Roboto Mono', monospace;
  font-size: 20px;
  font-weight: 400;
  transition: color 0.2s ease;
}

.departure-card.past {
  opacity: 0.5;
}

.departure-card.past .departure-time-start,
.departure-card.past .departure-time-end {
  color: #8E8E93;
}

.departure-card.past .departure-separator::before {
  content: "—";
}

.departure-card.active {
  background: #ffb20d;
}

.departure-card.active .departure-time-start,
.departure-card.active .departure-time-end {
  color: white;
}

.departure-card.active .departure-separator {
  opacity: 0.85;
  color: white;
}

.departure-card.active .departure-separator::before {
  content: "⋯";
}

.departure-card.future .departure-separator::before {
  content: "→";
}

/* TRIP SCREEN STOPS */
.stop-row {
  display: flex;
  align-items: flex-start;
  padding: 0;
  background: transparent;
  border-radius: 0;
  margin-bottom: 0;
  position: relative;
  padding-left: 18px;
  padding-right: 7.5px;
  padding-top: 6px;
  padding-bottom: 6px;
  transition: opacity 0.3s ease;
}

/* Progress line */
.stop-row::before {
  content: '';
  position: absolute;
  left: 19.2px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: rgba(60, 60, 67, 0.29);
  z-index: 0;
  transition: background 0.3s ease;
}

.stop-row:first-child::before {
  top: 27px;
  background: #ffb20d;
}

.stop-row.passed::before,
.stop-row.active::before {
  background: #ffb20d;
}

.stop-row:last-child::before {
  bottom: auto;
  height: 27px;
}

.stop-row:first-child::before {
  top: 30px;
  background: #ffb20d;
}

.stop-row.passed::before {
  background: #ffb20d;
}

.stop-row.active::before {
  background: #ffb20d;
}

.stop-row:last-child::before {
  display: none;
}

/* Station icon */
.stop-icon {
  position: absolute;
  left: 8.5px;
  top: 15.5px;
  width: 24px;
  height: 24px;
  background: #FFFFFF;
  border: 3px solid rgba(60, 60, 67, 0.29);
  border-radius: 6px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stop-row:first-child .stop-icon {
  border-color: #ffb20d;
}

.stop-icon.active {
  background: #ffb20d;
  border-color: #ffb20d;
}

.stop-icon.passed {
  background: #ffb20d;
  border-color: #ffb20d;
}

.stop-icon.future {
  background: #FFFFFF;
  border-color: #C7C7CC;
}

.stop-icon svg {
  width: 14px;
  height: 14px;
  fill: white;
}

.stop-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: calc(100% - 26px);
  background: #FFFFFF;
  padding: 12px 16px;
  border-radius: 5px;
  margin-left: 26px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.stop-name {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 18px;
  color: #1C1C1E;
  transition: color 0.2s ease;
}

.stop-time {
  font-family: 'Roboto Mono', monospace;
  font-size: 15px;
  font-weight: 400;
  color: #1C1C1E;
  white-space: nowrap;
  display: flex;
  align-items: baseline;
  gap: 1px;
  transition: color 0.2s ease;
}

.time-number {
  font-family: 'Roboto Mono', monospace;
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
}

.time-unit {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  opacity: 1;
  margin-left: 1px;
}

.gray .stop-name {
  color: #8E8E93 !important;
  opacity: 0.6;
}

.gray .stop-time {
  color: #8E8E93 !important;
  opacity: 0.6;
  font-weight: 700;
}

.gray .stop-content {
  background: rgba(0, 0, 0, 0.03);
}

.green .stop-name {
  color: #1C1C1E !important;
}

.green .time-number {
  color: #1C1C1E !important;
  font-weight: 400;
}

.green .time-unit {
  color: #1C1C1E !important;
  font-weight: 400;
}

.stop-row.future .stop-time {
  font-weight: 400;
}

.bold {
  font-weight: 700;
}

#lines-list {
  display: flex;
  flex-direction: column;
  gap: 2px; /* Razmak između linija */
}

.line-item {
  padding: 16px;
  border-radius: 12px; /* Zaobljene ivice za moderan izgled */
}

/* HOME HEADER SEGMENT SWITCHER (Obavijesti / Omiljene) */
.home-segment {
  position: relative;
  display: flex;
  width: 80%;
  max-width: 413px;
  margin: 0 auto;
  background: #E5E5EA;
  border-radius: 9px;
  padding: 2px;
}

.home-segment.hidden {
  display: none;
}

.home-segment-indicator {
  position: absolute;
  top: 2px;
  left: 2px;
  width: calc(50% - 2px);
  height: calc(100% - 4px);
  background: #FFFFFF;
  border-radius: 7px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.home-segment-indicator.position-1 {
  transform: translateX(100%);
}

.home-segment-btn {
  position: relative;
  z-index: 1;
  flex: 1;
  border: none;
  background: transparent;
  padding: 7px 0;
  color: #6E6E73;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  transition: color 0.25s ease;
}

.home-segment-btn.active {
  color: #1C1C1E;
  font-weight: 600;
}

/* SWIPE OBAVIJESTI <-> OMILJENE
   Oba taba sjede jedan pored drugog u "traci" (track) koja se horizontalno
   pomjera - tako da kad se prebacuje tab, sadržaj vizuelno "otklizi" u stranu
   u kojoj se ide (kao iOS page/segment kontrole), umjesto da samo iščezne. */
.home-swipe-viewport {
  width: 100%;
  overflow-x: hidden;
  /* vertikalni skrol i dalje radi normalno preko .screen roditelja */
  overflow-y: visible;
}

.home-swipe-track {
  display: flex;
  width: 200%;
  align-items: flex-start;
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}

/* Bez tranzicije dok korisnik aktivno prevlači prstom - traka mora pratiti
   prst 1:1, glatka tranzicija se dodaje tek na otpuštanje (snap) */
.home-swipe-track.no-transition {
  transition: none;
}

.home-tab-panel {
  width: 50%;
  flex-shrink: 0;
  min-width: 0;
}

/* LINE ITEM SA FAVORITE BUTTON */
.line-item-home {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 413px;
  height: 57px;
  padding: 0 16px;
  background: #FFFFFF;
  border-radius: 8px;
  margin: 0 auto 8px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03), 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: background 0.2s ease;
}

.line-item-home:active {
  background: #ECECEE;
}

.line-item-home .line-number {
  margin-right: 12px;
}

.line-item-home .line-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.line-item-home .line-name {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #1C1C1E;
}

.line-item-home .line-route {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 13px;
  color: #8E8E93;
}

/* EMPTY STATE */
.empty-favorites {
  text-align: center;
  padding: 60px 20px;
  color: #8E8E93;
}

.empty-favorites svg {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  opacity: 0.3;
}

.empty-favorites h3 {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #6E6E73;
  margin-bottom: 8px;
}

.empty-favorites p {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #8E8E93;
}

/* BOTTOM NAVIGATION - iOS style */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 428px;
  margin: 0 auto;
  background: #FFFFFF;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: space-around;
  padding: 8px 0 20px;
  z-index: 200;
  box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.03), 0 -4px 16px rgba(0, 0, 0, 0.04);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 8px 20px;
  transition: color 0.2s ease;
  color: #8E8E93;
}

.line-item:active, 
.line-item-home:active, 
.departure-card:active {
  background: #ECECEE;
}

.nav-item.active {
  color: #ffb20d;
}

.nav-item svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.nav-item span {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
}

/* ADJUST CONTENT FOR BOTTOM NAV */
.content {
  padding: 20px 16px 120px 16px; 
}

.trip-content {
  padding-bottom: 100px !important;
}

/* NOTIFICATIONS - plain and simple */
.notification-card {
  background: #FFFFFF;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  border-left: 3px solid transparent;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03), 0 2px 8px rgba(0, 0, 0, 0.04);
}

.notification-card.no-line {
  border-left-color: transparent;
}

.notification-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}

.notification-title {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #1C1C1E;
}

.notification-time {
  margin-left: auto;
  font-size: 12px;
  color: #8E8E93;
  white-space: nowrap;
}

.notification-content {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #6E6E73;
}

.notification-empty {
  text-align: center;
  padding: 60px 20px;
  color: #8E8E93;
}

.notification-empty svg {
  width: 80px;
  height: 80px;
  margin-bottom: 16px;
  opacity: 0.3;
  fill: currentColor;
}
/* =======================
   WELCOME / CONSENT SCREEN
   Prikazuje se samo pri prvom ikad pokretanju aplikacije (ili nakon reinstalacije,
   jer se tada localStorage briše). Logika za prikaz/sakrivanje je u app.js.
   ======================= */
.welcome-screen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  max-width: 428px;
  margin: 0 auto;
  background: #ffb20d;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(64px + env(safe-area-inset-top)) 28px calc(28px + env(safe-area-inset-bottom));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.welcome-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.welcome-content {
  margin-top: 40px;
}

.welcome-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 34px;
  line-height: 1.25;
  color: #FFFFFF;
}

.welcome-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 16px;
  max-width: 320px;
}

.welcome-footer {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.welcome-legal {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
}

.welcome-legal a {
  color: #FFFFFF;
  font-weight: 600;
  text-decoration: underline;
}

.welcome-agree-btn {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: #ffb20d;
  background: #FFFFFF;
  border: none;
  border-radius: 14px;
  padding: 16px;
  width: 100%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.welcome-agree-btn:active {
  opacity: 0.85;
}