/* ==========================================================================
   PORTAL DOKUMENTASI PENGELOLAAN WEBSITE UIN STS JAMBI
   Tema Custom WP TemaProdi - Typography: Roboto & Lora
   Design Style: Modern Rounded (8px radius across components)
   ========================================================================== */

/* @import Google Fonts: Roboto (Body) & Lora (Headings) */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Roboto:ital,wght@0,300;0,400;0,500;0,700;1,400;1,500&display=swap');

:root {
  /* Color Palette - Official UIN STS Jambi TemaProdi Theme */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-hover: #e2e8f0;
  
  --border-color: #e2e8f0;
  --border-subtle: #f1f5f9;
  --border-focus: #1e40af;
  
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-inverse: #ffffff;
  
  /* Brand Colors matching UIN STS Jambi TemaProdi */
  --brand-navy: #1e3a8a;          /* Deep Royal Blue Topbar */
  --brand-navy-dark: #172554;
  --brand-primary: #1e40af;       /* Primary Blue */
  --brand-primary-light: #3b82f6;
  --brand-primary-subtle: #eff6ff;
  --brand-primary-dark: #1e3a8a;

  --brand-emerald: #059669;       /* UIN STS Islamic Green Accent */
  --brand-emerald-subtle: #ecfdf5;
  --brand-amber: #d97706;         /* Gold / Amber Accent */
  --brand-amber-subtle: #fffbeb;
  --brand-purple: #7c3aed;
  --brand-purple-subtle: #f5f3ff;
  --brand-rose: #e11d48;
  --brand-rose-subtle: #fff1f2;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-spotlight: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  
  /* Layout Dimensions */
  --topbar-height: 32px;
  --header-height: 68px;
  --sidebar-width: 290px;
  --toc-width: 240px;
  --content-max-width: 960px;
  
  /* Typography - Strictly Roboto & Lora */
  --font-body: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: 'Lora', Georgia, 'Times New Roman', serif;
  
  /* Animation */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  /* Radius Rules: Modern 8px standard */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 8px;
  --radius-xl: 8px;
  --radius-btn: 8px;
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
}

html {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + var(--topbar-height) + 20px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-color: var(--bg-primary);
  font-family: var(--font-body);
  font-size: 1rem;
}

/* Headings with Lora Serif */
h1, h2, h3, h4, h5, h6, .font-heading, .brand-title, .step-title, .callout-title, .quick-jump-title, .aspect-info-title, .spotlight-item-title, .checklist-title {
  font-family: var(--font-heading) !important;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

a {
  color: var(--brand-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
  font-family: var(--font-body);
}
a:hover {
  color: var(--brand-navy);
}

code, pre, kbd, samp {
  font-family: var(--font-body) !important;
  font-weight: 600;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ==========================================================================
   TOPBAR BILAH BIRU (Secondary Menu - TemaProdi)
   ========================================================================= */
.top-bar-blue {
  background: var(--brand-navy);
  color: #ffffff;
  font-size: 0.78rem;
  padding: 0 1.5rem;
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 52;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-notice {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  color: #e0e7ff;
}

.top-bar-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.top-bar-links a {
  color: #c7d2fe;
  font-size: 0.76rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.top-bar-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ==========================================================================
   SITE HEADER BAR
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-icon-wrapper {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--brand-navy), var(--brand-primary));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-family: var(--font-heading) !important;
  font-weight: 700;
  font-size: 1.15rem;
  box-shadow: 0 3px 8px rgba(30, 58, 138, 0.25);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-navy);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.2;
}

.brand-badge {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  background: var(--brand-emerald-subtle);
  color: var(--brand-emerald);
  border-radius: 8px;
  border: 1px solid rgba(5, 150, 105, 0.3);
}

.brand-subtitle {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* Header Middle & Actions */
.header-search-btn {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.48rem 0.95rem;
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.86rem;
  transition: all var(--transition-fast);
  min-width: 240px;
}

.header-search-btn:hover {
  background: #ffffff;
  border-color: var(--brand-primary);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.search-shortcut {
  margin-left: auto;
  font-size: 0.72rem;
  font-family: var(--font-body);
  font-weight: 600;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 2px 6px;
  border-radius: 6px;
  color: var(--text-secondary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.btn-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-body);
}

.btn-icon:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.btn-header-cta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 1rem;
  border-radius: 8px;
  background: var(--brand-primary);
  color: #ffffff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.84rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 4px rgba(30, 64, 175, 0.2);
}

.btn-header-cta:hover {
  background: var(--brand-navy);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(30, 58, 138, 0.25);
}

.mobile-menu-toggle {
  display: none;
  border-radius: 8px;
}

/* ==========================================================================
   LAYOUT CONTAINER
   ========================================================================== */
.docs-layout {
  display: flex;
  flex: 1;
  max-width: 1540px;
  margin: 0 auto;
  width: 100%;
  position: relative;
}

/* ==========================================================================
   SIDEBAR (LEFT NAVIGATION)
   ========================================================================== */
.docs-sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  height: calc(100vh - var(--header-height) - var(--topbar-height));
  position: sticky;
  top: calc(var(--header-height) + var(--topbar-height));
  overflow-y: auto;
  padding: 1.5rem 1rem 3rem 1.5rem;
  border-right: 1px solid var(--border-color);
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-section-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
  padding-left: 0.75rem;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.96rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  position: relative;
}

.sidebar-link .nav-num {
  font-size: 0.85rem;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--text-muted);
  width: 20px;
  text-align: right;
  flex-shrink: 0;
}

.sidebar-link:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.sidebar-link.active {
  background: var(--brand-primary-subtle);
  color: var(--brand-primary);
  font-weight: 600;
}

.sidebar-link.active .nav-num {
  color: var(--brand-primary);
}

.sidebar-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  height: 70%;
  width: 3.5px;
  background: var(--brand-primary);
  border-radius: 8px;
}

/* Quick Tools Box in Sidebar */
.sidebar-tools-box {
  margin-top: auto;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem;
}

.sidebar-tools-title {
  font-family: var(--font-heading) !important;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 0.4rem;
}

.sidebar-tools-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.btn-sidebar-action {
  width: 100%;
  padding: 0.5rem;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
}

.btn-sidebar-action:hover {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #ffffff;
}

/* ==========================================================================
   MAIN CONTENT AREA
   ========================================================================== */
.docs-main {
  flex: 1;
  min-width: 0;
  padding: 2.75rem 4rem 5rem 4rem;
  max-width: calc(100% - var(--sidebar-width));
  background: var(--bg-primary);
}

.content-wrapper {
  max-width: 960px;
  margin: 0 auto;
}

/* Hero / Header Section */
.doc-hero {
  margin-bottom: 3.5rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.85rem;
  background: var(--brand-primary-subtle);
  color: var(--brand-primary);
  border-radius: 8px;
  border: 1px solid rgba(30, 64, 175, 0.2);
  margin-bottom: 1.15rem;
}

.doc-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.22;
  color: var(--brand-navy);
  margin-bottom: 1rem;
}

.doc-hero .lead-text {
  font-size: 1.18rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-secondary);
}

.doc-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.5rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: #ffffff;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

/* Quick Jump Pill Grid (Clean Text Layout - No Icons) */
.quick-jump-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin: 2.25rem 0 3.5rem 0;
}

.quick-jump-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--brand-primary);
  border-radius: 8px;
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.quick-jump-card:hover {
  border-color: var(--brand-primary);
  border-left-color: var(--brand-navy);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.quick-jump-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-navy);
  line-height: 1.35;
}

.quick-jump-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-top: 0.35rem;
  line-height: 1.45;
}

/* Section Containers */
.doc-section {
  margin-bottom: 4rem;
  scroll-margin-top: calc(var(--header-height) + var(--topbar-height) + 20px);
}

.section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border-color);
}

.section-badge-num {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  background: var(--brand-navy);
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.doc-section h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--brand-navy);
  line-height: 1.28;
}

.doc-section h3 {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--brand-navy);
  margin: 2rem 0 1rem 0;
  line-height: 1.35;
}

.doc-section p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.78;
  margin-bottom: 1.25rem;
}

/* ==========================================================================
   CARDS, CALLOUTS, & STEPS (Clean Border Style - No Icons)
   ========================================================================== */
.callout {
  border-radius: 8px;
  padding: 1.35rem 1.5rem;
  margin: 1.75rem 0;
  display: flex;
  flex-direction: column;
  border: 1px solid transparent;
  font-size: 1.025rem;
  line-height: 1.75;
}

.callout-content {
  flex: 1;
}

.callout-title {
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 1.18rem;
  line-height: 1.35;
}

.callout-tip {
  background: var(--brand-emerald-subtle);
  border: 1px solid rgba(5, 150, 105, 0.25);
  border-left: 5px solid var(--brand-emerald);
  color: #065f46;
}

.callout-info {
  background: var(--brand-primary-subtle);
  border: 1px solid rgba(30, 64, 175, 0.2);
  border-left: 5px solid var(--brand-primary);
  color: #1e3a8a;
}

.callout-warning {
  background: var(--brand-amber-subtle);
  border: 1px solid rgba(217, 119, 6, 0.25);
  border-left: 5px solid var(--brand-amber);
  color: #92400e;
}

.callout-seo {
  background: var(--brand-primary-subtle);
  border: 1px solid rgba(30, 64, 175, 0.25);
  border-left: 5px solid var(--brand-navy);
  box-shadow: var(--shadow-sm);
}

.callout-seo .callout-title {
  color: var(--brand-navy);
}

/* Breadcrumb Navigation Badge */
.admin-path {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 0.55rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--text-primary);
  margin: 0.75rem 0 1.25rem 0;
  user-select: all;
  box-shadow: var(--shadow-sm);
}

.admin-path .path-step {
  font-weight: 700;
  color: var(--brand-navy);
}

.admin-path .path-sep {
  color: var(--text-muted);
}

.btn-copy-path {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--brand-navy);
  cursor: pointer;
  padding: 3px 10px;
  margin-left: 0.65rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-body);
  display: inline-flex;
  align-items: center;
  transition: all var(--transition-fast);
}
.btn-copy-path:hover {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #ffffff;
}

/* Step-by-Step Card Flow */
.step-flow {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.step-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem 1.65rem;
  display: flex;
  gap: 1.25rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.step-card:hover {
  border-color: var(--brand-primary-light);
  box-shadow: var(--shadow-md);
}

.step-num-badge {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--brand-primary-subtle);
  color: var(--brand-primary);
  font-weight: 700;
  font-size: 0.95rem;
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(30, 64, 175, 0.25);
}

.step-body {
  flex: 1;
}

.step-title {
  font-family: var(--font-heading);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 0.45rem;
  line-height: 1.35;
}

.step-text {
  font-size: 1.025rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* Field Item Grid (Metaboxes) */
.field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}

.field-item {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem 1.15rem;
}

.field-name {
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--brand-navy);
  margin-bottom: 0.35rem;
}

.field-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.field-example {
  margin-top: 0.5rem;
  font-size: 0.88rem;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--brand-primary);
  background: #ffffff;
  padding: 3px 8px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  display: inline-block;
}

/* ==========================================================================
   DATA TABLES
   ========================================================================== */
.table-container {
  overflow-x: auto;
  margin: 1.75rem 0;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  background: #ffffff;
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 1rem;
}

.doc-table th {
  background: #f1f5f9;
  color: var(--brand-navy);
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 1rem 1.25rem;
  border-bottom: 2px solid var(--border-color);
  font-size: 1.02rem;
}

.doc-table th:first-child {
  border-top-left-radius: 8px;
}
.doc-table th:last-child {
  border-top-right-radius: 8px;
}

.doc-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  vertical-align: middle;
  line-height: 1.7;
}

.doc-table tr:last-child td {
  border-bottom: none;
}

.doc-table tr:hover td {
  background: var(--brand-primary-subtle);
}

.table-badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-body);
}
.badge-blue { background: var(--brand-primary-subtle); color: var(--brand-primary); border: 1px solid rgba(30,64,175,0.2); }
.badge-green { background: var(--brand-emerald-subtle); color: var(--brand-emerald); border: 1px solid rgba(5,150,105,0.2); }
.badge-purple { background: var(--brand-purple-subtle); color: var(--brand-purple); border: 1px solid rgba(124,58,237,0.2); }
.badge-amber { background: var(--brand-amber-subtle); color: var(--brand-amber); border: 1px solid rgba(217,119,6,0.2); }

/* ==========================================================================
   VISUAL MEDIA & ASPECT RATIO DISPLAY
   ========================================================================== */
.aspect-ratio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.25rem;
  margin: 1.75rem 0;
}

.aspect-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.aspect-preview-box {
  width: 100%;
  height: 110px;
  background: var(--bg-tertiary);
  border-radius: 8px;
  border: 1.5px dashed var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
}

.aspect-shape {
  background: linear-gradient(135deg, var(--brand-navy), var(--brand-primary-light));
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.shape-16-7 { width: 140px; height: 61px; }
.shape-16-9 { width: 130px; height: 73px; }
.shape-3-4 { width: 68px; height: 90px; }
.shape-1-1 { width: 80px; height: 80px; }
.shape-logo { width: 150px; height: 45px; }

.aspect-info-title {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 0.25rem;
}

.aspect-info-dim {
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 0.35rem;
}

.aspect-info-fmt {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   TOC (RIGHT RAIL - DI HALAMAN INI)
   ========================================================================== */
.docs-toc {
  width: var(--toc-width);
  min-width: var(--toc-width);
  height: calc(100vh - var(--header-height) - var(--topbar-height));
  position: sticky;
  top: calc(var(--header-height) + var(--topbar-height));
  overflow-y: auto;
  padding: 2.5rem 1.5rem 3rem 1rem;
  font-size: 0.82rem;
}

.toc-title {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.875rem;
}

.toc-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  border-left: 2px solid var(--border-color);
  padding-left: 0.75rem;
}

.toc-link {
  color: var(--text-secondary);
  line-height: 1.4;
  transition: all var(--transition-fast);
  padding: 0.15rem 0;
  display: block;
  border-radius: 6px;
}

.toc-link:hover {
  color: var(--brand-primary);
}

.toc-link.active {
  color: var(--brand-primary);
  font-weight: 600;
}

/* ==========================================================================
   MODAL DIALOGS (SEARCH SPOTLIGHT & CHECKLIST)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 4rem 1rem 2rem 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.spotlight-dialog {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  width: 100%;
  max-width: 620px;
  box-shadow: var(--shadow-spotlight);
  overflow: hidden;
  transform: translateY(-15px) scale(0.98);
  transition: transform var(--transition-normal);
}

.modal-overlay.open .spotlight-dialog {
  transform: translateY(0) scale(1);
}

.spotlight-header {
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  gap: 0.75rem;
}

.spotlight-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--text-primary);
}

.spotlight-input::placeholder {
  color: var(--text-muted);
}

.spotlight-results {
  max-height: 380px;
  overflow-y: auto;
  padding: 0.75rem;
}

.spotlight-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.875rem;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  color: var(--text-secondary);
  transition: background var(--transition-fast);
  cursor: pointer;
}

.spotlight-item:hover, .spotlight-item.selected {
  background: var(--brand-primary-subtle);
  color: var(--brand-primary);
}

.spotlight-item-text {
  flex: 1;
}

.spotlight-item-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-navy);
}

.spotlight-item-sec {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.spotlight-footer {
  padding: 0.65rem 1.25rem;
  background: var(--bg-tertiary);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* Checklist Drawer */
.checklist-drawer {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  width: 100%;
  max-width: 580px;
  box-shadow: var(--shadow-spotlight);
  overflow: hidden;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.checklist-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.checklist-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-navy);
}

.checklist-body {
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.checklist-progress-bar {
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.checklist-progress-fill {
  height: 100%;
  background: var(--brand-primary);
  width: 0%;
  transition: width var(--transition-normal);
  border-radius: 8px;
}

.checklist-group-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-primary);
  margin-bottom: 0.5rem;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem 0;
  cursor: pointer;
  user-select: none;
}

.checklist-item input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--brand-primary);
  width: 16px;
  height: 16px;
  cursor: pointer;
  border-radius: 4px;
}

.checklist-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.checklist-item input:checked + .checklist-label {
  text-decoration: line-through;
  color: var(--text-muted);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: var(--brand-navy);
  color: #ffffff;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: slideInUp 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-color);
  background: #ffffff;
  padding: 2.5rem 1.5rem;
  margin-top: auto;
}

.footer-content {
  max-width: 1540px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.footer-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--brand-navy);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE / TABLET OPTIMIZATIONS)
   ========================================================================== */
@media (max-width: 1200px) {
  .docs-toc {
    display: none;
  }
  .docs-main {
    max-width: calc(100% - var(--sidebar-width));
  }
}

@media (max-width: 900px) {
  .top-bar-blue {
    display: none;
  }
  
  /* Sembunyikan Pencarian, Checklist & Tombol Print di Header Mobile */
  .header-search-btn {
    display: none !important;
  }
  .header-actions {
    display: none !important;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }

  .site-header {
    padding: 0 1rem;
  }

  .brand-title {
    font-size: 1.05rem;
  }

  .docs-sidebar {
    position: fixed;
    left: -100%;
    top: var(--header-height);
    height: calc(100vh - var(--header-height));
    z-index: 45;
    background: #ffffff;
    transition: left var(--transition-normal);
    box-shadow: var(--shadow-xl);
  }
  .docs-sidebar.open {
    left: 0;
  }

  .docs-main {
    max-width: 100%;
    padding: 1.75rem 1.25rem 4rem 1.25rem;
  }
  
  .doc-hero h1 {
    font-size: 1.85rem;
  }
}

/* ==========================================================================
   PRINT STYLESHEET
   ========================================================================== */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .top-bar-blue, .site-header, .docs-sidebar, .docs-toc, .site-footer, .header-actions, .quick-jump-grid, .modal-overlay, .toast-container, .btn-copy-path, .btn-sidebar-action {
    display: none !important;
  }
  .docs-main {
    max-width: 100% !important;
    padding: 0 !important;
  }
  .doc-section {
    page-break-inside: avoid;
    margin-bottom: 2rem;
  }
  .doc-table {
    border: 1px solid #ccc;
  }
  .doc-table th, .doc-table td {
    border: 1px solid #ccc;
    color: #000 !important;
  }
}
