/* ==============================================================================
   Custom Stylesheet — Portofolio Rekam Jejak Arifin Suaib, ME
   Kepala Dinas Koperasi dan UKM Kabupaten Gorontalo
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

:root {
  --koperasi-dark: #092c22;
  --koperasi-primary: #0f4c3a;
  --koperasi-green: #15803d;
  --koperasi-light: #16a34a;
  --koperasi-emerald: #10b981;
  --accent-gold: #f59e0b;
  --accent-amber: #d97706;
}

/* Global Font & Body */
body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: #f8fafc;
  color: #1e293b;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Header Gradient Card (index.php & components) */
.header-gradient,
.header-hero {
  background: linear-gradient(135deg, #092c22 0%, #0f4c3a 45%, #166534 85%, #15803d 100%);
  position: relative;
  overflow: hidden;
}

.header-gradient::before,
.header-hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.18) 0%, rgba(245, 158, 11, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.header-gradient::after,
.header-hero::after {
  content: '';
  position: absolute;
  bottom: -70px;
  left: 25%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.12) 0%, rgba(52, 211, 153, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Thumbnail Box Styling */
.thumbnail-box {
  width: 88px;
  height: 60px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease;
  background-color: #e2e8f0;
  display: block;
}

.thumbnail-box:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

/* Custom Table Styles */
.custom-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}

.custom-table th {
  background-color: #f8fafc;
  color: #475569;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  padding: 14px 18px;
  border-bottom: 2px solid #e2e8f0;
  white-space: nowrap;
}

.custom-table td {
  padding: 14px 18px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

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

/* Prose Typography for Article Detail & Archive */
.prose {
  color: #1e293b;
  max-width: 100%;
}

.prose p {
  margin-bottom: 1.25rem;
  line-height: 1.8;
  font-size: 1.05rem;
  color: #334155;
}

.prose strong,
.prose b {
  color: #0f172a;
  font-weight: 700;
}

.prose h2,
.prose h3 {
  color: #0f172a;
  font-weight: 800;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.prose h2 {
  font-size: 1.5rem;
}

.prose h3 {
  font-size: 1.25rem;
}

.prose blockquote {
  border-left: 4px solid #15803d;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  background-color: #f0fdf4;
  border-radius: 0 12px 12px 0;
  color: #166534;
  font-style: italic;
}

.prose blockquote p {
  margin-bottom: 0;
  color: #166534;
}

.prose ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin: 1.25rem 0;
}

.prose li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

/* Styling Tabel Cantik di dalam Konten Artikel & Salinan Arsip */
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.925rem;
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  border: 1px solid #cbd5e1;
}

.prose table thead {
  background: linear-gradient(135deg, #0f4c3a 0%, #15803d 100%);
  color: #ffffff;
}

.prose table th {
  padding: 12px 14px;
  font-weight: 700;
  text-align: left;
  border-bottom: 2px solid #092c22;
  color: #ffffff;
}

.prose table td {
  padding: 10px 14px;
  border-bottom: 1px solid #e2e8f0;
  color: #1e293b;
  vertical-align: middle;
}

.prose table tbody tr:nth-child(even) {
  background-color: #f8fafc;
}

.prose table tbody tr:hover {
  background-color: #f0fdf4;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-fade-in {
  animation: fadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ==============================================================================
   Text Box & Modal Readability Enhancement (High Contrast & Sharp Typography)
   ============================================================================== */
.modal-overlay-scroll {
  position: fixed;
  inset: 0;
  z-index: 999;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  overflow-y: auto;
  padding: 1.5rem 1rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.modal-content-box {
  background-color: #ffffff;
  border-radius: 1.25rem;
  width: 100%;
  max-width: 56rem;
  padding: 2rem;
  margin: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid #cbd5e1;
  position: relative;
}

.readable-input {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  background-color: #ffffff !important;
  border: 2px solid #94a3b8 !important;
  border-radius: 12px !important;
  padding: 12px 16px !important;
  line-height: 1.5 !important;
  letter-spacing: 0 !important;
  width: 100% !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
}

.readable-input:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2) !important;
  outline: none !important;
  background-color: #ffffff !important;
}

.readable-title-input {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #09090b !important;
  background-color: #ffffff !important;
  border: 2px solid #64748b !important;
  border-radius: 12px !important;
  padding: 14px 18px !important;
  line-height: 1.4 !important;
  width: 100% !important;
}

.readable-title-input:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2) !important;
  outline: none !important;
}

.readable-textarea {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  color: #0f172a !important;
  background-color: #ffffff !important;
  border: 2px solid #94a3b8 !important;
  border-radius: 12px !important;
  padding: 14px 16px !important;
  line-height: 1.6 !important;
  letter-spacing: 0.01em !important;
  width: 100% !important;
}

.readable-textarea:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2) !important;
  outline: none !important;
}

.readable-editor-area {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  color: #000000 !important;
  background-color: #ffffff !important;
  border: 2px solid #64748b !important;
  border-top: none !important;
  border-radius: 0 0 12px 12px !important;
  padding: 16px !important;
  line-height: 1.7 !important;
  letter-spacing: 0.01em !important;
  width: 100% !important;
  min-height: 240px !important;
}

.readable-editor-area:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2) !important;
  outline: none !important;
}

/* ==============================================================================
   Aksen Visual Khusus untuk Penonjolan Nama Tokoh 'Arifin Suaib, ME'
   ============================================================================== */
.highlight-tokoh {
  background-color: rgba(245, 158, 11, 0.15);
  color: #92400e;
  font-weight: 700;
  padding: 0.08em 0.3em;
  border-radius: 0.25rem;
  border-bottom: 2px solid #d97706;
  display: inline;
  white-space: normal;
}

/* Penyesuaian saat mode latar gelap */
.bg-slate-900 .highlight-tokoh,
.header-hero .highlight-tokoh,
.header-gradient .highlight-tokoh {
  background-color: rgba(245, 158, 11, 0.25);
  color: #fef08a;
  border-bottom-color: #f59e0b;
}

/* Print Styles */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 10pt !important;
  }

  .no-print,
  nav,
  footer,
  button,
  form,
  .btn,
  #addUserModal,
  #editUserModal,
  #resetPassModal,
  #changePassModal,
  #editorialModal,
  #editModal,
  #addModal,
  #imageModal {
    display: none !important;
  }

  .shadow-sm,
  .shadow-md,
  .shadow-lg,
  .shadow-2xl {
    box-shadow: none !important;
  }

  .custom-table {
    width: 100% !important;
  }

  .custom-table th {
    background-color: #f1f5f9 !important;
    color: #000000 !important;
    border-bottom: 1.5pt solid #000000 !important;
    font-size: 9pt !important;
  }

  .custom-table td {
    border-bottom: 0.5pt solid #e2e8f0 !important;
    font-size: 9.5pt !important;
  }

  .thumbnail-box {
    border: 1px solid #94a3b8 !important;
  }

  .card-container {
    border: none !important;
  }
}
