/* ================================================================
MFB-RDM — Miss Fish Bali Digital Projects Roadmap
CSS3 · Base Styles, Theming, Topbar & Hero Layout
IT Department · Miss Fish Bali
Version   : 1.5.0
Generated : 23 September 2026, 11:28:00
================================================================ */

/* ── SOP v2.5 STARTER BLOCK & LUXURY FONT STACKS ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Bespoke Editorial & Luxury Typography Stacks (Zero CDN Latency, 100% Offline PWA) */
  --font-display: 'Cinzel', 'Playfair Display', 'Didot', 'Bodoni MT', 'Baskerville', 'Georgia', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Plus Jakarta Sans', 'Inter', 'SF Pro Text', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'Roboto Mono', Menlo, Monaco, Consolas, monospace;

  /* Luxury Metallic Gold & Champagne Master Tokens */
  --gold-metallic: linear-gradient(135deg, #F7E7C4 0%, #D4AF37 40%, #B8860B 75%, #8B6508 100%);
  --gold-shimmer: linear-gradient(90deg, #C9A84C 0%, #FDE68A 50%, #C9A84C 100%);
  --gold-border-glow: linear-gradient(135deg, rgba(212, 175, 55, 0.45) 0%, rgba(255, 255, 255, 0.08) 50%, rgba(212, 175, 55, 0.25) 100%);
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
  min-height: 100vh;
  font-family: var(--font-sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Accessible focus outline */
:focus-visible {
  outline: 2px solid var(--brass, #C9A84C);
  outline-offset: 2px;
}

/* Screen reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Browser default button reset (Standar Coding v1.7 Kategori 11.2) */
button {
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  cursor: pointer;
  padding: 0;
}

/* SOP v2.1 Grid and Flex child overflow defense */
.grid-safe > *, .row > *, .flex > * {
  min-width: 0;
}
img, svg, video, canvas, iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Custom subtle scrollbar (SOP v2.1 Kategori 13) */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border, #284461);
  border-radius: 3px;
}
* {
  scrollbar-width: thin;
  scrollbar-color: var(--border, #284461) transparent;
}

/* ── COLOR TOKENS & THEMING (SOP v2.1 Kategori 13) ── */
:root, [data-theme="light"] {
  --theme-name: 'light';
  --bg: #F4F6F9;
  --bg-subtle: #EAEEF3;
  --surface: #FFFFFF;
  --surface-raised: #FFFFFF;
  --surface2: #EDF1F5;
  --surface-hover: #E3E9F0;
  --border: #D2DAE2;
  --border-subtle: #E2E8EE;
  --line: #CBD5E1;
  --ink: #0B1B2E;
  --ink-soft: #2D3E50;
  --ink-muted: #5A6D82;
  --brass: #9C7A2E; /* Tested: 4.8:1 contrast on white */
  --brass2: #B38E37;
  --brass-glow: rgba(156, 122, 46, 0.15);
  --shadow-sm: 0 1px 3px rgba(11, 27, 46, 0.06);
  --shadow-md: 0 4px 12px rgba(11, 27, 46, 0.08);
  --shadow-lg: 0 12px 28px rgba(11, 27, 46, 0.12);

  /* Status Colors (Light Theme) */
  --status-completed: #059669;
  --status-completed-bg: #ECFDF5;
  --status-inprogress: #0284C7;
  --status-inprogress-bg: #F0F9FF;
  --status-coding: #7C3AED;
  --status-coding-bg: #F5F3FF;
  --status-testing: #D97706;
  --status-testing-bg: #FFFBEB;
  --status-deployment: #4F46E5;
  --status-deployment-bg: #EEF2FF;
  --status-concept: #475569;
  --status-concept-bg: #F1F5F9;
  --status-onhold: #E11D48;
  --status-onhold-bg: #FFF1F2;
}

[data-theme="dark"] {
  --theme-name: 'dark';
  --bg: #0B1B2E;
  --bg-subtle: #081422;
  --surface: #14273D;
  --surface-raised: #1A314D;
  --surface2: #1D3754;
  --surface-hover: #244163;
  --border: #284461;
  --border-subtle: #1C334A;
  --line: #1F364E;
  --ink: #E8EEF7;
  --ink-soft: #B0C4DB;
  --ink-muted: #7A93AF;
  --brass: #C9A84C; /* Tested: 7.2:1 contrast on navy */
  --brass2: #E8C468;
  --brass-glow: rgba(201, 168, 76, 0.22);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.45);

  /* Status Colors (Dark Theme) */
  --status-completed: #10B981;
  --status-completed-bg: rgba(16, 185, 129, 0.15);
  --status-inprogress: #38BDF8;
  --status-inprogress-bg: rgba(56, 189, 248, 0.15);
  --status-coding: #A78BFA;
  --status-coding-bg: rgba(167, 139, 250, 0.15);
  --status-testing: #FBBF24;
  --status-testing-bg: rgba(251, 191, 36, 0.15);
  --status-deployment: #818CF8;
  --status-deployment-bg: rgba(129, 140, 248, 0.15);
  --status-concept: #94A3B8;
  --status-concept-bg: rgba(148, 163, 184, 0.15);
  --status-onhold: #FB7185;
  --status-onhold-bg: rgba(251, 113, 133, 0.15);
}

body {
  background-color: var(--bg);
  color: var(--ink);
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* ── TOPBAR (SOP v2.0 Kategori 11.1: Navbar Murni Tanpa Logo) ── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 90;
  width: 100%;
  height: 60px;
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px, 3vw, 48px);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.hdr-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.hdr-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dept-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: var(--brass-glow);
  color: var(--brass);
  border: 1px solid var(--brass);
  white-space: nowrap;
}

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

/* Sync indicator */
.sync-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.sync-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--status-completed);
  box-shadow: 0 0 6px var(--status-completed);
  transition: background-color 0.3s ease;
}

.sync-dot.syncing {
  background-color: var(--brass);
  animation: pulse-dot 1s infinite alternate;
}

@keyframes pulse-dot {
  from { opacity: 0.4; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1.15); }
}

/* Action buttons */
.topbar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background-color: var(--surface2);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.topbar-btn:hover {
  background-color: var(--surface-hover);
  border-color: var(--brass);
  color: var(--brass);
}

.topbar-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.topbar-btn.icon-only {
  width: 38px;
  padding: 0;
}

/* ── HERO SECTION (SOP v2.1 Blueprint B.4: 2-Column Luxury Dark Grid) ── */
.hero-wrapper {
  /* Constant dark background protects text contrast across dark & light modes */
  background: linear-gradient(135deg, #091624 0%, #102338 52%, #152d47 100%);
  color: #FFFFFF;
  padding: clamp(32px, 5vw, 64px) clamp(20px, 5vw, 96px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  width: 100%;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(201, 168, 76, 0.15);
  border: 1px solid rgba(201, 168, 76, 0.4);
  color: #E8C468;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  width: fit-content;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 2.95rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: #FFFFFF;
}

.hero-title .title-accent {
  color: #E8C468;
  background: var(--gold-metallic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
}

.hero-statement {
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  color: #C3D5E8;
  line-height: 1.6;
}

/* Statistics grid inside hero */
.hero-stats-panel {
  margin-top: 8px;
  padding: 16px 20px;
  background: rgba(8, 20, 34, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.hero-stats-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  user-select: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.hero-stats-header:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.stat-total-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #9DB4CC;
}

.stat-total-count {
  font-size: 1.6rem;
  font-weight: 800;
  color: #E8C468;
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
}

.stats-badges-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #E2E8F0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.stat-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.stat-pill.active {
  background: rgba(201, 168, 76, 0.25);
  border-color: #E8C468;
  color: #FFFFFF;
  box-shadow: 0 0 12px rgba(201, 168, 76, 0.35);
}

.stat-pill:focus-visible {
  outline: 2px solid #E8C468;
  outline-offset: 2px;
}

.stat-pill .badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.stat-pill .badge-count {
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.72rem;
  font-family: var(--font-mono);
}

/* Specific status pill styles */
.stat-pill[data-status="Completed"] .badge-dot { background: #10B981; }
.stat-pill[data-status="In Progress"] .badge-dot { background: #38BDF8; }
.stat-pill[data-status="Coding"] .badge-dot { background: #A78BFA; }
.stat-pill[data-status="Testing"] .badge-dot { background: #FBBF24; }
.stat-pill[data-status="Deployment"] .badge-dot { background: #818CF8; }
.stat-pill[data-status="Still Concept"] .badge-dot { background: #94A3B8; }
.stat-pill[data-status="On Hold"] .badge-dot { background: #FB7185; }

/* Hero visual card (Master SOP v2.5 Kategori 15 & Standar Coding v2.1 Bagian 11.1) */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo-card, .hero-card-frame {
  width: min(100%, 290px);
  background: #FFFFFF;
  border-radius: 18px;
  padding: 24px 28px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.40);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.hero-logo-card:hover, .hero-card-frame:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.55), 0 0 24px rgba(201, 168, 76, 0.25);
}

.hero-logo-card img, .hero-logo-img {
  max-width: 220px;
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  filter: contrast(1.06) brightness(1.02);
  image-rendering: -webkit-optimize-contrast;
}

.hero-logo-card .card-cap-besar {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #08090C;
}

.hero-logo-card .card-cap-kecil {
  font-size: 10.5px;
  color: #475569;
  font-weight: 600;
  margin-top: -4px;
}

.hero-card-caption {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #173752;
}

/* ── MAIN CONTENT & ATURAN WIDTH (SOP v2.1 Kategori 1) ── */
/* NO fixed px max-width! Width controlled strictly by clamp padding */
#main {
  padding: 32px clamp(20px, 5vw, 120px) 80px;
  width: 100%;
}

/* ── FILTER & SEARCH CONTROLS BAR ── */
.controls-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  padding: 16px 20px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.search-box-wrap {
  position: relative;
  flex: 1 1 260px;
  min-width: 220px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  stroke: var(--ink-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 42px;
  padding: 0 16px 0 42px;
  padding: 0 38px 0 42px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background-color: var(--bg);
  color: var(--ink);
  font-size: 0.88rem;
  transition: all 0.2s ease;
}

.search-clear-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--surface2);
  border: 1px solid var(--border);
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}

.search-clear-btn:hover {
  background-color: var(--surface-hover);
  border-color: var(--brass);
  color: var(--brass);
}

.search-clear-btn svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
}

.search-input:focus {
  outline: none;
  border-color: var(--brass);
  box-shadow: 0 0 0 3px var(--brass-glow);
  background-color: var(--surface);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.filter-select {
  height: 42px;
  padding: 0 32px 0 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background-color: var(--bg);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238A96A3' stroke-width='2' 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 10px center;
  transition: all 0.2s ease;
}

.filter-select:focus {
  outline: none;
  border-color: var(--brass);
  box-shadow: 0 0 0 3px var(--brass-glow);
}

.reset-btn {
  height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background-color: var(--surface2);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.reset-btn:hover {
  background-color: var(--surface-hover);
  border-color: var(--brass);
  color: var(--brass);
}

.results-counter {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-muted);
  width: 100%;
  display: flex;
  justify-content: flex-end;
  padding-top: 4px;
}

/* ── EMPTY STATE ── */
.empty-state {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
  background-color: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 16px;
  margin: 40px 0;
}

.empty-state.show {
  display: flex;
}

.empty-icon {
  width: 54px;
  height: 54px;
  stroke: var(--ink-muted);
  margin-bottom: 16px;
  opacity: 0.7;
}

.empty-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.empty-desc {
  font-size: 0.9rem;
  color: var(--ink-muted);
}

/* ── FOOTER (Master SOP v2.5 Kategori 1: Solid Obsidian & Gold Border) ── */
.app-footer {
  width: 100%;
  padding: 28px clamp(20px, 5vw, 120px);
  background: #08090C !important;
  border-top: 1px solid rgba(212, 175, 55, 0.25);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.82rem;
  color: #A0B3C6;
}

.footer-credit {
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #E8C468;
}

.footer-meta {
  color: #7A93AF;
  font-size: 0.78rem;
}

/* ── RESPONSIVE BREAKPOINTS ── */
@media (max-width: 1050px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-visual {
    order: -1;
  }
  .hero-card-frame {
    width: min(100%, 280px);
    padding: 18px;
  }
}

@media (max-width: 768px) {
  .topbar {
    height: 54px;
  }
  .hdr-title {
    font-size: 0.92rem;
  }
  .dept-badge {
    display: none; /* Keep topbar uncluttered on small screens */
  }
  .sync-text {
    display: none;
  }
  .controls-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .filter-group {
    flex-direction: column;
    align-items: stretch;
  }
  .filter-select, .reset-btn {
    width: 100%;
  }
  .results-counter {
    justify-content: flex-start;
  }
}

