/* === MARSEA Hub Base UI === */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
  --ocean-1: #052b47;
  --ocean-2: #0b5f8a;
  --ocean-3: #1f9fcf;
  --accent: #ffd36b;
  --card: #ffffff;
  --muted: #7b8996;
  --bg: #f2f7fb;
  --radius: 12px;
  --shadow: 0 6px 20px rgba(9, 30, 46, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
}

body {
  background: var(--bg);
  color: var(--ocean-1);
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
}

/* SIDEBAR */

.sidebar {
  width: 240px;
  background: linear-gradient(180deg, var(--ocean-1), var(--ocean-2));
  color: #fff;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  padding: 20px 0;
  box-shadow: var(--shadow);
  z-index: 10;
  transition: transform 0.3s ease, width 0.3s ease;
}

.sidebar-logo {
  text-align: center;
  margin-bottom: 20px;
  padding: 0 16px;
}

.logo-img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: contain;
  background: rgba(255,255,255,0.08);
  padding: 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}


.sidebar-logo h2 {
  font-size: 1.2rem;
  font-weight: 700;
}

.sidebar-menu {
  list-style: none;
  padding: 0;
  margin-top: 10px;
}

.sidebar-menu li {
  padding: 4px 16px;
}

.sidebar-menu a {
  display: block;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  padding: 8px 10px;
  border-radius: var(--radius);
  transition: background 0.2s ease;
  font-size: 0.95rem;
}

.sidebar-menu a.active,
.sidebar-menu a:hover {
  background: rgba(255, 255, 255, 0.16);
}

.brand-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
}

.brand-main {
  color: #ffffff;       /* kuning MARSEA putih*/
  letter-spacing: 0.5px;
}

.brand-sub {
  color: #ff9500;       /* Hub tetap kuning */
  opacity: 0.95;
}


/* MAIN */

.main-content {
  margin-left: 240px;
  padding: 20px 26px 40px;
  flex: 1;
  transition: margin-left 0.3s ease;
}

/* TOPBAR */

.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 10px 16px;
  margin-bottom: 20px;
}

#menuToggle {
  border: none;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
  color: var(--ocean-2);
}

.topbar h1 {
  font-size: 1.1rem;
  font-weight: 600;
}

/* HERO */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr);
  gap: 20px;
  background: linear-gradient(135deg, var(--ocean-2), var(--ocean-3));
  color: #fff;
  border-radius: var(--radius);
  padding: 24px 24px 26px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.hero-text h2 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.hero-text p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 14px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-primary,
.btn-secondary {
  text-decoration: none;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: var(--accent);
  color: #052b47;
}

.btn-secondary {
  border: 1px solid #fff;
  color: #fff;
  background: transparent;
}

.hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-placeholder {
  width: 100%;
  max-width: 280px;
  min-height: 160px;
  border-radius: var(--radius);
  border: 2px dashed rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* SECTIONS */

.section-header {
  margin-bottom: 10px;
}

.section-header h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.section-header p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* KPI GRID */

.kpi-section {
  margin-bottom: 20px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}

.kpi-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px 14px;
  text-align: left;
}

.kpi-card h4 {
  font-size: 1.4rem;
  color: var(--ocean-2);
  margin-bottom: 4px;
}

.kpi-card p {
  font-size: 0.85rem;
  color: var(--muted);
}

/* CARD BLOCK */

.card-block {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 16px 18px;
  margin-bottom: 18px;
}

/* GRID 2-COL */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.info-card {
  background: #f7fbff;
  border-radius: var(--radius);
  padding: 10px 12px;
}

.info-card h4 {
  font-size: 0.98rem;
  margin-bottom: 4px;
}

.info-card p {
  font-size: 0.88rem;
  color: var(--muted);
}

/* CHART WRAPPER */

.chart-wrapper {
  width: 100%;
  height: 260px;
}

/* FOOTER */

.footer {
  margin-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .sidebar {
    transform: translateX(-240px);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main-content {
    margin-left: 0;
    padding: 16px 16px 30px;
  }
}

/* === MAP LAYOUT === */

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 0;
  min-height: 420px;
}

.map-container {
  width: 100%;
  height: 460px;
  border-top-left-radius: var(--radius);
  border-bottom-left-radius: var(--radius);
  overflow: hidden;
}

.map-side-panel {
  padding: 12px 14px;
  border-top-right-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.02);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.filter-btn {
  border: 1px solid rgba(5, 43, 71, 0.16);
  background: #f5f9ff;
  color: var(--ocean-1);
  font-size: 0.78rem;
  padding: 4px 8px;
  border-radius: 999px;
  cursor: pointer;
}

.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #052b47;
}

.vessel-list,
.restarea-list {
  max-height: 180px;
  overflow-y: auto;
  padding-right: 4px;
}

.vessel-item,
.restarea-item {
  padding: 6px 6px;
  border-radius: 8px;
  margin-bottom: 4px;
  cursor: pointer;
  font-size: 0.82rem;
  display: flex;
  gap: 8px;
  align-items: center;
}

.vessel-item:hover,
.restarea-item:hover {
  background: #f2f7ff;
}

.vessel-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.restarea-pill {
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 999px;
  background: #f4fbf5;
  color: #2f8f3c;
}

@media (max-width: 900px) {
  .map-layout {
    grid-template-columns: 1fr;
  }
  .map-container {
    border-radius: var(--radius) var(--radius) 0 0;
  }
  .map-side-panel {
    border-radius: 0 0 var(--radius) var(--radius);
  }
}

.auth-logo {
  width: 90px;          /* boleh 72–100px sesuai selera */
  height: 90px;
  display: block;
  margin: 0 auto 12px;  /* center + kasih jarak ke judul */
  object-fit: contain;
  border-radius: 16px;  /* boleh 0 kalau mau buletannya polos */
}

.booking-card {
  background: #fff;
  padding: 12px;
  border-radius: 12px;
  margin-bottom: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}