/* ============================================================
   BB GOLD DESIGN SYSTEM & STYLING ENGINE
   PT. DRAJAT WIGUNA ADIDAYA
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --primary-navy: #0a2540;
  --primary-gold: #e5a91a;
  --gold-hover: #ca8a04;
  --accent-blue: #0052cc;
  --accent-green: #059669;
  --bg-slate: #f8fafc;
  --border-light: #e2e8f0;
  --border-strong: #cbd5e1;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  overflow-x: hidden;
  width: 100%;
  background-color: var(--bg-slate);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-dark);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: inline-block;
}

/* ============================================================
   PEMUSNAH BILAH INTER-PORTAL (BERSIH TOTAL)
   ============================================================ */
.inter-portal,
.portal-bar,
.portal-switch,
.nav-interportal,
[class*="inter-portal"] {
  display: none !important;
}

/* ============================================================
   HEADER & NAVBAR UNIVERSAL
   ============================================================ */
.main-navbar,
.user-navbar,
.mitra-navbar,
.admin-navbar,
.top-nav {
  background: var(--primary-navy);
  border-bottom: 2.5px solid var(--primary-gold);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.brand-title,
.user-nav-brand,
.mitra-brand,
.admin-brand,
.top-nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
}

.brand-title strong,
.user-nav-brand strong,
.mitra-brand strong,
.admin-brand strong,
.top-nav-brand strong {
  color: var(--primary-gold);
}

.brand-title img,
.user-nav-brand img,
.mitra-brand img {
  height: 24px;
  width: auto;
  object-fit: contain;
}

.nav-link-back {
  color: #cbd5e1;
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav-link-back:hover {
  color: var(--primary-gold);
}

/* ============================================================
   CONTAINER & LAYOUT CARD
   ============================================================ */
.container,
.client-container,
.reseller-container,
.admin-container {
  max-width: 680px;
  width: 100%;
  margin: 18px auto 40px;
  padding: 0 14px 60px;
}

.card-box,
.calc-card,
.status-card,
.form-box {
  background: var(--white);
  border: 1.5px solid var(--border-light);
  border-radius: 16px;
  padding: 20px 16px;
  box-shadow: 0 4px 12px rgba(10, 37, 64, 0.04);
  margin-bottom: 16px;
  width: 100%;
}

/* ============================================================
   TYPOGRAPHY & HEADINGS
   ============================================================ */
h1, h2, h3 {
  font-weight: 800;
  color: var(--primary-navy);
  line-height: 1.3;
}

.page-title {
  font-size: 1.35rem;
  margin-bottom: 4px;
}

.page-subtitle {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 18px;
}

/* ============================================================
   INPUT FORMULIR, SELECT, & BUTTONS
   ============================================================ */
.form-group {
  margin-bottom: 14px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.form-control,
input[type="text"],
input[type="number"],
input[type="tel"],
input[type="password"],
select,
textarea {
  width: 100%;
  padding: 11px 13px;
  border-radius: 9px;
  border: 1.5px solid var(--border-strong);
  font-size: 13px;
  font-family: inherit;
  color: var(--text-dark);
  background: var(--white);
  outline: none;
  transition: all 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.form-control:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.1);
  background: var(--white);
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
  padding-right: 36px;
}

/* BUTTONS */
.btn-primary,
.btn-submit,
.btn-booking,
.btn-tarik-modal {
  width: 100%;
  background: var(--primary-navy);
  color: var(--white);
  border: 1.5px solid var(--primary-gold);
  padding: 12px 18px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  transition: all 0.2s ease;
}

.btn-primary:hover,
.btn-submit:hover,
.btn-booking:hover,
.btn-tarik-modal:hover {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
}

.btn-logout {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  font-size: 10.5px;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
}

.btn-logout:hover {
  background: #dc2626;
  color: var(--white);
}

/* ============================================================
   RESPONSIVE GRID
   ============================================================ */
.menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  width: 100%;
}

@media (min-width: 640px) {
  .menu-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 12px 40px;
  }
  .page-title {
    font-size: 1.25rem;
  }
}