/* PDF Viewer Styles - IMPROVED & RESPONSIVE dengan ratio 16:9 */
.pdf-viewer-container {
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  margin-bottom: 20px;
}

.pdf-iframe-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
}

.pdf-iframe-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Touch-friendly PDF controls */
.pdf-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
}

.pdf-controls button {
  background: var(--primary-blue);
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  min-height: 44px; /* Minimum touch target size for mobile */
  min-width: 44px;
}

.pdf-controls button:hover {
  background: var(--primary-orange);
  transform: translateY(-2px);
}

.pdf-controls span {
  color: white;
  font-weight: 500;
}

.download-pdf-btn {
  color: white;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  background: var(--primary-blue);
  padding: 10px 15px;
  border-radius: 6px;
  min-height: 44px;
}

.download-pdf-btn:hover {
  background: var(--primary-orange) !important;
  color: white;
  text-decoration: none;
}

/* Zoom functionality */
.pdf-zoom-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.zoom-level {
  color: white;
  font-size: 14px;
  min-width: 60px;
  text-align: center;
}

/* Mobile-specific improvements */
@media (max-width: 768px) {
  .pdf-viewer-container {
    border-radius: 8px;
    margin-bottom: 15px;
  }

  .pdf-controls {
    gap: 8px;
    padding: 12px;
  }

  .pdf-controls button,
  .download-pdf-btn {
    padding: 12px 16px;
    font-size: 14px;
    flex: 1;
    min-width: 120px;
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .pdf-controls {
    flex-direction: column;
  }

  .pdf-controls button,
  .download-pdf-btn {
    width: 100%;
    min-width: auto;
  }
}
