:root {
  --primary-color: #dc2626;
  --primary-dark: #b91c1c;
  --primary-light: #fecaca;
  --secondary-color: #3b82f6;
  --accent-color: #f59e0b;
}

body {
  font-family: "Poppins", sans-serif;
  scroll-behavior: smooth;
}

/* Theme Toggle */
#theme-toggle {
  font-size: 1.5rem;
}

/* Animasi SVG */
svg path {
  animation: wave 10s infinite linear;
}
@keyframes wave {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100px);
  }
}

/* ====== Custom CSS ====== */
.gradient-bg {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
}

.glass-effect {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-content {
  position: relative;
  z-index: 10;
}

.floating-animation {
  animation: floating 6s ease-in-out infinite;
}
@keyframes floating {
  0% {
    transform: translate(0, 0px);
  }
  50% {
    transform: translate(0, -15px);
  }
  100% {
    transform: translate(0, 0px);
  }
}

.bounce-animation {
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.pulse-animation {
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(220, 38, 38, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
  }
}

.text-gradient {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.card-hover {
  transition: all 0.3s ease;
}
.card-hover:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.navbar-scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.navbar-scrolled .nav-link,
.navbar-scrolled .brand-text,
.navbar-scrolled .theme-toggle,
.navbar-scrolled .menu-toggle {
  color: #1f2937 !important;
}
.navbar-scrolled .nav-link:hover {
  color: #dc2626 !important;
}

.stat-card {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.stat-card:hover::before {
  transform: scaleX(1);
}

.search-box {
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.1);
}

.infographic-card {
  transition: all 0.5s ease;
  overflow: hidden;
}
.infographic-card:hover .infographic-overlay {
  opacity: 1;
  transform: translateY(0);
}

.infographic-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  padding: 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.service-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto 20px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  font-size: 30px;
  box-shadow: 0 10px 20px rgba(220, 38, 38, 0.2);
}

.footer-wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}
.footer-wave svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 50px;
}
.footer-wave .shape-fill {
  fill: #ffffff;
}

.hero-bg {
  background-image: url("/public/assets/img/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(220, 38, 38, 0.8) 0%,
    rgba(59, 130, 246, 0.8) 100%
  );
}

.logo-hero {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  padding: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.form-section {
  transition: all 0.3s ease;
}

.table-container {
  max-height: 400px;
  overflow-y: auto;
}

.status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.status-pending {
  background-color: #fef3c7;
  color: #d97706;
}
.status-approved {
  background-color: #d1fae5;
  color: #059669;
}
.status-rejected {
  background-color: #fee2e2;
  color: #dc2626;
}
.status-processing {
  background-color: #dbeafe;
  color: #2563eb;
}

.file-upload-area,
.logo-upload-area {
  border: 2px dashed #d1d5db;
  border-radius: 0.5rem;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.file-upload-area:hover,
.logo-upload-area:hover {
  border-color: #dc2626;
  background-color: #fef2f2;
}
.file-upload-area.dragover,
.logo-upload-area.dragover {
  border-color: #dc2626;
  background-color: #fef2f2;
}

/* Custom DataTables Styling */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
  padding: 1rem;
}
.dataTables_wrapper .dataTables_filter input {
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  padding: 0.5rem;
}
table.dataTable {
  border-collapse: collapse !important;
}

/* Modal Styling */
.modal {
  transition: opacity 0.25s ease;
}
.modal.active {
  opacity: 1;
  pointer-events: all;
}
.modal-content {
  transform: scale(0.9);
  transition: transform 0.25s ease;
}
.modal.active .modal-content {
  transform: scale(1);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d40000;
}
.timeline-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: -5px;
  top: 20px;
  width: 2px;
  height: calc(100% + 10px);
  background: #e9ecef;
}

/* PDF Viewer Styles */
#pdf-viewer {
  width: 100%;
  height: 500px;
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  overflow: auto;
  background: #f8f9fa;
}
.pdf-page {
  margin: 10px auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  background: white;
}
.pdf-controls {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}
.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

/* Animation keyframes & classes */
@keyframes gradient-text {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}
.animate-gradient-text {
  background-size: 200% 200%;
  animation: gradient-text 3s linear infinite alternate;
}
@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-24px);
  }
}
@keyframes spin-slow {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.animate-float {
  animation: floaty 4s ease-in-out infinite;
}
.animate-spin-slow {
  animation: spin-slow 12s linear infinite;
}
.animate-slide-in-left {
  animation: slideInLeft 1.1s cubic-bezier(0.4, 0, 0.2, 1) both;
}
@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-40px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}
.animate-fade-in-up {
  animation: fadeInUp 1.3s cubic-bezier(0.4, 0, 0.2, 1) both;
}
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-fade-in {
  animation: fadeIn 1.1s cubic-bezier(0.4, 0, 0.2, 1) both;
}
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.main-content {
  transition: all 0.3s ease;
  min-height: 100vh;
}

/* Logo Grid Styling */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}
.logo-card {
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}
.logo-card:hover {
  border-color: #dc2626;
  transform: translateY(-5px);
}

.category-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  z-index: 10;
}

.category-pendidikan {
  background: #3b82f6;
  color: white;
}
.category-kesehatan {
  background: #10b981;
  color: white;
}
.category-infrastruktur {
  background: #f59e0b;
  color: white;
}
.category-ekonomi {
  background: #8b5cf6;
  color: white;
}

/* Berita, Card, dan News Section */
.related-news-card,
.news-card {
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
}
.related-news-card:hover,
.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: #dc2626;
}

.news-image {
  transition: transform 0.3s ease;
}
.news-card:hover .news-image {
  transform: scale(1.05);
}

.read-more-btn,
.back-to-news {
  background: linear-gradient(135deg, #dc2626, #3b82f6);
  transition: all 0.3s ease;
}
.read-more-btn:hover,
.back-to-news:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(220, 38, 38, 0.3);
}

.social-share:hover {
  transform: translateY(-2px);
  transition: all 0.3s ease;
}

.author-avatar {
  width: 60px;
  height: 60px;
  border: 3px solid #e5e7eb;
}

.news-tag {
  background: #f3f4f6;
  color: #6b7280;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  transition: all 0.3s ease;
}
.news-tag:hover {
  background: #dc2626;
  color: white;
}

.hero-news {
  background: linear-gradient(
    135deg,
    rgba(220, 38, 38, 0.9) 0%,
    rgba(59, 130, 246, 0.9) 100%
  );
}

.content-blockquote {
  border-left: 4px solid #dc2626;
  background: #fef2f2;
  padding: 20px;
  border-radius: 8px;
  font-style: italic;
}

.news-stats {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border-radius: 12px;
}
