/* =============================================
   LAYOUT.CSS — Header, Tabs, Main, Grid
   ============================================= */

/* ----- Header ----- */
header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(6,11,20,.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo        { display: flex; align-items: center; gap: 10px; }

.logo-mark {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent), #0284c7);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 0 20px rgba(14,165,233,.3);
  flex-shrink: 0;
}

.logo-text h1   { font-family: 'Syne', sans-serif; font-size: 16px; font-weight: 800; }
.logo-text span { font-size: 10.5px; color: var(--muted2); display: block; }

.live-dot {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  color: var(--green);
  font-weight: 600;
}

.live-dot::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

/* ----- Tabs ----- */
.tabs {
  position: sticky;
  top: 65px;
  z-index: 100;
  background: rgba(6,11,20,.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
}

.tab {
  flex: 1;
  padding: 13px 8px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted2);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all .2s;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.tab.active { color: var(--accent); border-bottom-color: var(--accent); }

.tab-badge {
  background: var(--accent);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 10px;
  min-width: 16px;
  text-align: center;
}

/* ----- Tab Content ----- */
.tab-content        { display: none; position: relative; z-index: 1; }
.tab-content.active { display: block; }

/* ----- Main Container ----- */
main {
  max-width: 500px;
  margin: 0 auto;
  padding: 20px 14px 90px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ----- Search Bar (Kurir Tab) ----- */
.search-bar { display: flex; gap: 8px; margin-bottom: 14px; }

.search-bar input {
  flex: 1;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 13px;
  outline: none;
  transition: border-color .2s;
}

.search-bar input:focus       { border-color: var(--accent); }
.search-bar input::placeholder { color: var(--muted); }

/* ----- Kurir List ----- */
.kurir-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ----- Header Inner ----- */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

/* ----- Tabs Inner ----- */
.tabs-inner {
  display: flex;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.tabs-inner .tab { flex: 1; }

/* ----- Btn Pin (📍 di sebelah select) ----- */
.btn-pin {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 16px;
  padding: 10px 12px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-pin:hover { border-color: var(--accent); background: rgba(14,165,233,.08); }

/* ----- Btn Maps (lihat rute Google Maps) ----- */
.btn-maps {
  width: 100%;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  color: var(--accent2);
  font-family: 'Syne', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  padding: 10px 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: border-color .2s, background .2s;
  margin-top: 10px;
  text-decoration: none;
}

.btn-maps:hover { border-color: var(--accent); background: rgba(14,165,233,.08); }

/* ----- Btn Pilihan (kurir / pencari di tab daftar) ----- */
.btn-pilihan {
  width: 100%;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  padding: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: border-color .2s, transform .15s, background .2s;
  text-align: left;
}

.btn-pilihan:hover {
  border-color: var(--accent);
  background: rgba(14,165,233,.06);
  transform: translateY(-1px);
}
