:root {
  --primary: #6c63ff;
  --primary-light: #8075ff;
  --dark-bg: #080c18;
  --card-bg: #0d1225;
  --border: rgba(108, 99, 255, 0.2);
  --text: #f8f9fa;
  --text-muted: rgba(248, 249, 250, 0.6);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", sans-serif;
  background: var(--dark-bg);
  color: var(--text);
  min-height: 100vh;
}

/* ============================
       TOP NAV BAR
    ============================ */
.top-nav {
  background: rgba(8, 12, 24, 0.95);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--primary-light);
}

.breadcrumb .sep {
  opacity: 0.4;
}

.breadcrumb .current {
  color: var(--text);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-nav.outline {
  border: 1px solid var(--border);
  color: var(--text);
  background: transparent;
}

.btn-nav.outline:hover {
  border-color: var(--primary);
  color: var(--primary-light);
}

.btn-nav.filled {
  background: var(--primary);
  color: white;
}

.btn-nav.filled:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}

/* ============================
       DOC HEADER
    ============================ */
.doc-header {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-light) 100%
  );
  padding: 50px 0 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.doc-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30px;
  background: var(--dark-bg);
  border-radius: 100% 100% 0 0;
}

.blob {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
}
.blob-1 {
  width: 250px;
  height: 250px;
  top: -80px;
  right: -60px;
}
.blob-2 {
  width: 180px;
  height: 180px;
  bottom: -50px;
  left: -30px;
}

.doc-header-content {
  position: relative;
  z-index: 1;
}

.doc-label {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 3px 14px;
  font-size: 0.78rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.doc-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.doc-subtitle {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ============================
       PDF VIEWER WRAPPER
    ============================ */
.viewer-container {
  max-width: 960px;
  margin: 2.5rem auto;
  padding: 0 1.5rem;
}

.viewer-toolbar {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px 12px 0 0;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.viewer-toolbar-title {
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0.8;
}

.viewer-toolbar-actions {
  display: flex;
  gap: 0.5rem;
}

.pdf-frame-wrapper {
  background: #2a2a35;
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 12px 12px;
  overflow: hidden;
  position: relative;
}

.pdf-frame {
  width: 100%;
  height: 85vh;
  min-height: 600px;
  border: none;
  display: block;
}

/* Fallback jika iframe tidak support */
.pdf-fallback {
  display: none;
  padding: 3rem;
  text-align: center;
}

.pdf-fallback i {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.pdf-fallback p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* ============================
       RELATED SECTION
    ============================ */
.related-section {
  max-width: 960px;
  margin: 2rem auto 4rem;
  padding: 0 1.5rem;
}

.related-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-weight: 600;
}

.related-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.related-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.25rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.related-link:hover {
  border-color: var(--primary);
  color: var(--primary-light);
  transform: translateY(-2px);
}

.related-link i {
  color: var(--primary);
}

/* ============================
       RESPONSIVE
    ============================ */
@media (max-width: 600px) {
  .top-nav {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .doc-title {
    font-size: 1.35rem;
  }
  .pdf-frame {
    height: 70vh;
    min-height: 400px;
  }
  .viewer-toolbar {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
}
