/* Tablet Styles */
@media (max-width: 1024px) {
  .detail-container {
    grid-template-columns: 1fr 250px !important;
    gap: 30px !important;
  }

  .tab-navigation {
    flex-wrap: wrap !important;
  }

  .tab-btn {
    flex: 1 !important;
    min-width: 120px !important;
  }
}

/* Mobile Styles */
@media (max-width: 768px) {
  .detail-container {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .sidebar {
    order: -1;
  }

  .tab-navigation {
    flex-wrap: wrap !important;
  }

  .tab-btn {
    flex: 1 !important;
    min-width: 100px !important;
    padding: 10px 12px !important;
    font-size: 14px !important;
  }

  table {
    font-size: 14px !important;
  }

  table td {
    padding: 8px 12px !important;
  }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
  div[style*="padding: 40px 20px"] {
    padding: 20px 15px !important;
  }

  .tab-btn {
    padding: 8px 10px !important;
    font-size: 12px !important;
  }

  table {
    font-size: 12px !important;
  }

  table td {
    padding: 6px 8px !important;
  }
}

/* Tab Styles */
.tab-btn:hover {
  color: var(--highlight-text) !important;
  background-color: rgba(255, 137, 30, 0.1) !important;
}

.tab-btn.active {
  color: var(--highlight-text) !important;
  border-bottom-color: var(--highlight-text) !important;
}

/* Star Rating Styles */
.star-rating {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 16px;
}

.star {
  font-size: 28px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  position: relative;
}

.star:hover {
  transform: scale(1.1);
}

/* Star SVG Icons */
.star-empty {
  color: var(--sec-text);
}

.star-filled {
  color: #fbbf24;
}

.star-hover {
  color: #f59e0b;
}

/* Hover effects */
a[href*="DokumenHukum"]:hover {
  opacity: 0.9 !important;
  transform: translateY(-2px);
}

a[href*="DetailDokumenHukum"] > div:hover {
  background-color: var(--button-bg) !important;
  transform: translateX(4px);
}

/* Button hover effects */
button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Card hover effects */
div[style*="box-shadow: 0 2px 8px"]:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15) !important;
  transform: translateY(-2px);
}

div[style*="box-shadow: 0 4px 12px"]:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
  transform: translateY(-2px);
}

/* Rating animation */
.rating-message {
  transition: all 0.3s ease;
}

.rating-message.success {
  color: #10b981 !important;
  font-weight: 600 !important;
}

/* Table styling improvements */
table tbody tr:hover {
  background-color: var(--main-bg) !important;
}

table tbody tr:hover td {
  color: var(--main-text) !important;
}

/* Link hover effects */
a[style*="color: var(--highlight-text)"]:hover {
  text-decoration: underline !important;
  opacity: 0.8;
}

/* Input and form element focus styles */
*:focus {
  outline: 2px solid var(--highlight-text) !important;
  outline-offset: 2px !important;
}

/* Smooth transitions for all interactive elements */
* {
  transition: all 0.2s ease;
}

/* Custom scrollbar for better theme integration */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--main-bg);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: var(--highlight-text);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--button-bg);
}

/* PDF modal */
.pdf-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.pdf-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
}

.pdf-modal__dialog {
  position: relative;
  margin: 40px auto;
  background: var(--card);
  border-radius: 10px;
  max-width: 1080px;
  height: calc(100vh - 120px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pdf-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--main-bg);
  border-bottom: 1px solid #e5e7eb;
}

.pdf-modal__title {
  font-weight: 700;
  color: var(--title-text);
}

.pdf-modal__close {
  border: none;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: var(--sec-text);
}

.pdf-modal__close:hover {
  color: var(--highlight-text);
}

.pdf-modal__body {
  flex: 1;
  background: #111827;
  display: flex;
}

#pdf-frame {
  width: 100%;
  height: 100%;
}

@media (max-width: 768px) {
  .pdf-modal__dialog {
    height: calc(100vh - 60px);
    width: calc(100% - 24px);
  }
}
