:root {
  --primary-color: #2563eb;
  --secondary-color: #64748b;
  --success-color: #059669;
  --background-color: #f8fafc;
  --card-background: #ffffff;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --border-color: #e2e8f0;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

* {
  font-family: "Inter", sans-serif;
}

body {
  background-color: var(--background-color);
  color: var(--text-primary);
  line-height: 1.6;
}

#map {
  height: 400px;
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  position: relative;
  z-index: 1;
}

/* Header & Navigation */
.navbar {
  background-color: var(--card-background);
  box-shadow: var(--shadow);
  padding: 1rem 0;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-color) !important;
}

.nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  border-radius: 6px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.nav-link:hover {
  text-decoration: underline;
}

/* Aktif menu */
.nav-link.active {
  text-decoration: underline;
  font-weight: 600; /* optional: biar lebih tebal waktu aktif */
}


/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, #1d4ed8 100%);
  color: white;
  padding: 3rem 0;
  margin-bottom: 2rem;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.page-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  font-weight: 400;
}

/* Search Section */
.search-section {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.search-input {
  border: 2px solid #dee2e6;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: #f8fafc;
}

.search-input:focus {
  border-color: #2563eb;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}


/* Table */
.table {
  background-color: var(--card-background);
  border-radius: 8px;
  overflow: hidden;
}

.table th {
  background-color: rgba(37, 99, 235, 0.05);
  color: var(--text-primary);
  font-weight: 600;
}

.table td {
  color: var(--text-secondary);
  vertical-align: middle;
}

/* Dokumen Card */
.dokumen-card {
  background-color: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease;
}

.dokumen-card:hover {
  box-shadow: var(--shadow-hover);
}

.dokumen-img {
  height: 200px;
  object-fit: cover;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.dokumen-placeholder {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #94a3b8 100%);
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 500;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

/* Content Section */
.content-section {
  margin-bottom: 3rem;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
}

/* Cards */
.park-card {
  background-color: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease;
  height: 100%;
  overflow: hidden;
}

.park-card:hover {
  box-shadow: var(--shadow-hover);
}

.card-img-top {
  height: 220px;
  object-fit: cover;
}

.placeholder-img {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #94a3b8 100%);
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 500;
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.btn-detail {
  background-color: var(--primary-color);
  border: none;
  border-radius: 6px;
  padding: 0.5rem 1.25rem;
  font-weight: 500;
  color: white;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: background-color 0.2s ease;
}

.btn-detail:hover {
  background-color: #1d4ed8;
  color: white;
}

/* Pagination */
.pagination-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding: 1.5rem;
  background-color: var(--card-background);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.pagination-info {
  color: var(--text-secondary);
  font-weight: 500;
}

.pagination {
  margin: 0;
}

.page-link {
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  padding: 0.5rem 0.75rem;
  font-weight: 500;
}

.page-link:hover {
  color: var(--primary-color);
  background-color: rgba(37, 99, 235, 0.1);
  border-color: var(--border-color);
}

.page-item.active .page-link {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.page-item.disabled .page-link {
  color: #cbd5e0;
  background-color: #f8fafc;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  background-color: var(--card-background);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.empty-state i {
  font-size: 3rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.empty-state h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Button */
.btn-secondary {
  background-color: var(--secondary-color);
  border: none;
  border-radius: 6px;
  padding: 0.5rem 1.25rem;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.btn-secondary:hover {
  background-color: #475569;
}

.btn-masukan {
  background-color: var(--primary-color);
  border: none;
  border-radius: 6px;
  padding: 0.5rem 1.25rem;
  font-weight: 500;
  color: white;
  margin-right: 1rem;
}

.btn-masukan:hover {
  background-color: #1d4ed8;
}

/* Modal */
/* Enhanced Modal Styling */
.modal-content {
    border-radius: 15px;
    overflow: hidden;
}

.modal-header {
    padding: 1.5rem;
}

.form-control:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.input-group-text {
    border-radius: 8px 0 0 8px;
}

.form-control {
    border-radius: 0 8px 8px 0;
    padding: 0.75rem;
}

textarea.form-control {
    border-radius: 8px;
}

/* Animation untuk modal */
.modal.fade .modal-dialog {
    transform: scale(0.8) translateY(-50px);
    transition: all 0.3s ease;
}

.modal.show .modal-dialog {
    transform: scale(1) translateY(0);
}

/* Hover effects untuk input */
.input-group:hover .input-group-text {
    background-color: #e9ecef;
    transition: all 0.3s ease;
}

.form-control:hover {
    border-color: #20c997;
    transition: all 0.3s ease;
}

.modal-title {
  font-weight: 600;
}

.modal-body label {
  font-weight: 500;
  color: var(--text-primary);
}

.form-control,
.form-control:focus {
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background-color: #f8fafc;
}

#map {
  height: 400px;
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background-color: var(--card-background);
  border: 1px solid var(--border-color);
  margin-bottom: 1rem;
}

.leaflet-container {
  font-family: "Inter", sans-serif;
}

.leaflet-control-draw a {
  background-color: var(--card-background) !important;
  color: var(--primary-color) !important;
  border-radius: 6px !important;
  box-shadow: var(--shadow) !important;
  border: none !important;
  transition: background-color 0.2s ease;
}

.leaflet-control-draw a:hover {
  background-color: rgba(37, 99, 235, 0.1) !important;
}

.leaflet-popup-content-wrapper {
  border-radius: 8px;
  box-shadow: var(--shadow);
  background-color: var(--card-background);
  color: var(--text-primary);
}

.leaflet-popup-tip {
  background-color: var(--card-background);
}

.leaflet-control-geocoder {
  border-radius: 6px;
  box-shadow: var(--shadow);
  background-color: var(--card-background);
  width: 250px;
}

.leaflet-control-geocoder-form input {
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.5rem;
  font-family: "Inter", sans-serif;
  color: var(--text-primary);
  width: 200px;
}

.leaflet-control-geocoder-form button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0.5rem;
  transition: background-color 0.2s ease;
}

.leaflet-control-geocoder-form button:hover {
  background-color: #1d4ed8;
}

.luas-info {
  font-weight: 500;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.form-control[readonly] {
  background-color: #e9ecef;
  cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
  .page-title {
    font-size: 2rem;
  }

  .search-section {
    padding: 1.5rem;
  }

  .pagination-wrapper {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 768px) {
  #map {
    height: 300px;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .dokumen-img,
  .dokumen-placeholder {
    height: 150px;
  }
}

/* Stats Badge */
.stats-badge {
  background-color: rgba(37, 99, 235, 0.1);
  color: var(--primary-color);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

/* Tombol Tutup dalam Kolom */
.close-button {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #dc3545;
    color: #dc3545;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.15);
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.close-button:hover {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
    border-color: #dc3545;
}

.close-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
}

/* Responsive untuk mobile */
@media (max-width: 768px) {
    .close-button {
        font-size: 0.8rem;
        padding: 0.4rem 1.2rem !important;
    }
}
