/* Instansi Directory - Minimal Style */

/* Page Header */
.page-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 0;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 0 0 0.5rem;
}

.page-subtitle {
  font-size: 1.1rem;
  color: #6c757d;
  margin: 0;
}

/* Filter Section */
.filter-section {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.filter-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1rem;
}

.filter-input,
.filter-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  font-size: 0.95rem;
  background: #ffffff;
  transition: all 0.2s ease;
}

.filter-input:focus,
.filter-select:focus {
  outline: none;
  border-color: #5a67d8;
  box-shadow: 0 0 0 3px rgba(90, 103, 216, 0.1);
}

.filter-select {
  cursor: pointer;
}

/* Statistics */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-item {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.2s ease;
}

.stat-item:hover {
  border-color: #5a67d8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.stat-label {
  display: block;
  font-size: 0.9rem;
  color: #6c757d;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.stat-value {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c3e50;
}

/* Table Container */
.table-container {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 2rem;
}

/* Table */
.instansi-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.instansi-table thead {
  background: #f8f9fa;
  border-bottom: 2px solid #e0e0e0;
}

.instansi-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: #2c3e50;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.instansi-table tbody tr {
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s ease;
}

.instansi-table tbody tr:hover {
  background-color: #f8f9fa;
}

.instansi-table tbody tr:last-child {
  border-bottom: none;
}

.instansi-table td {
  padding: 1rem;
  vertical-align: middle;
  color: #495057;
}

.instansi-table td:first-child {
  font-weight: 600;
  color: #6c757d;
  width: 5%;
}

/* Instansi Name */
.instansi-name {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.instansi-desc {
  font-size: 0.85rem;
  color: #6c757d;
  line-height: 1.4;
}

/* Badge */
.badge {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
}

.badge-skpd {
  background: #e3f2fd;
  color: #1976d2;
  border: 1px solid #bbdefb;
}

.badge-kecamatan {
  background: #f3e5f5;
  color: #7b1fa2;
  border: 1px solid #e1bee7;
}

.badge-rsud {
  background: #e8f5e9;
  color: #388e3c;
  border: 1px solid #c8e6c9;
}

/* Link */
.link {
  color: #5a67d8;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.link:hover {
  color: #434190;
  text-decoration: underline;
}

/* Button */
.btn-visit {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background: #5a67d8;
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-visit:hover {
  background: #434190;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(90, 103, 216, 0.3);
}

/* Empty State */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  text-align: center;
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 0 0 0.5rem;
}

.empty-state p {
  font-size: 1rem;
  color: #6c757d;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .filter-row {
    grid-template-columns: 1fr;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-title {
    font-size: 2rem;
  }

  .page-subtitle {
    font-size: 1rem;
  }

  .filter-section {
    padding: 1rem;
  }

  .stat-value {
    font-size: 2rem;
  }

  .table-container {
    overflow-x: auto;
  }

  .instansi-table {
    font-size: 0.85rem;
  }

  .instansi-table th,
  .instansi-table td {
    padding: 0.75rem 0.5rem;
  }

  .instansi-name {
    font-size: 0.9rem;
  }

  .instansi-desc {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .page-header {
    padding: 1rem 0;
    margin-bottom: 2rem;
  }

  .page-title {
    font-size: 1.5rem;
  }

  .stats-row {
    gap: 1rem;
  }

  .stat-item {
    padding: 1rem;
  }

  .stat-value {
    font-size: 1.75rem;
  }

  .instansi-table th,
  .instansi-table td {
    padding: 0.6rem 0.4rem;
  }

  .btn-visit {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
}

/* Dark Mode Support */
[data-bs-theme="dark"] .page-title {
  color: #e7e7ff;
}

[data-bs-theme="dark"] .page-subtitle,
[data-bs-theme="dark"] .stat-label,
[data-bs-theme="dark"] .instansi-desc {
  color: #a8aabc;
}

[data-bs-theme="dark"] .filter-section,
[data-bs-theme="dark"] .stat-item,
[data-bs-theme="dark"] .table-container,
[data-bs-theme="dark"] .empty-state {
  background: #2b2c40;
  border-color: #3e3f51;
}

[data-bs-theme="dark"] .filter-input,
[data-bs-theme="dark"] .filter-select {
  background: #2b2c40;
  border-color: #3e3f51;
  color: #e7e7ff;
}

[data-bs-theme="dark"] .stat-value,
[data-bs-theme="dark"] .instansi-name {
  color: #e7e7ff;
}

[data-bs-theme="dark"] .instansi-table thead {
  background: #32334a;
}

[data-bs-theme="dark"] .instansi-table th {
  color: #e7e7ff;
}

[data-bs-theme="dark"] .instansi-table td {
  color: #a8aabc;
}

[data-bs-theme="dark"] .instansi-table tbody tr:hover {
  background-color: #32334a;
}

[data-bs-theme="dark"] .instansi-table tbody tr {
  border-bottom-color: #3e3f51;
}

[data-bs-theme="dark"] .badge-skpd {
  background: rgba(25, 118, 210, 0.2);
  color: #64b5f6;
  border-color: rgba(25, 118, 210, 0.3);
}

[data-bs-theme="dark"] .badge-kecamatan {
  background: rgba(123, 31, 162, 0.2);
  color: #ce93d8;
  border-color: rgba(123, 31, 162, 0.3);
}

[data-bs-theme="dark"] .badge-rsud {
  background: rgba(56, 142, 60, 0.2);
  color: #81c784;
  border-color: rgba(56, 142, 60, 0.3);
}
