/* ============================================
   PAKTI - Page Sections
   ============================================ */
.page-section {
  display: none;
}

.page-section.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   Stats Cards
   ============================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.stat-card.total::before { background: var(--government-blue); }
.stat-card.pending::before { background: var(--warning); }
.stat-card.perbaikan::before { background: #f59e0b; }
.stat-card.ditolak::before { background: var(--danger); }
.stat-card.terbit::before { background: var(--success); }

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 15px;
}

.stat-card.total .stat-icon { background: #dbeafe; color: var(--government-blue); }
.stat-card.pending .stat-icon { background: #fef3c7; color: var(--warning); }
.stat-card.perbaikan .stat-icon { background: #fed7aa; color: #ea580c; }
.stat-card.ditolak .stat-icon { background: #fee2e2; color: var(--danger); }
.stat-card.terbit .stat-icon { background: #d1fae5; color: var(--success); }

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-medium);
}

/* ============================================
   Charts Section
   ============================================ */
.charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 24px;
  margin-bottom: 30px;
}

.chart-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.chart-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.chart-title i {
  color: var(--primary-blue);
}

/* ============================================
   Filter Section
   ============================================ */
.filter-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 25px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  align-items: end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-medium);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-select,
.search-input {
  padding: 12px 16px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-family: inherit;
  transition: var(--transition);
  background: var(--white);
}

.filter-select:focus,
.search-input:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.search-wrapper {
  position: relative;
}

.search-wrapper i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
}

.search-wrapper .search-input {
  padding-left: 45px;
  width: 100%;
}

/* ============================================
   Badges
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-menunggu { background: #fef3c7; color: #92400e; }
.badge-perbaikan { background: #fed7aa; color: #c2410c; }
.badge-ditolak { background: #fee2e2; color: #991b1b; }
.badge-terbit { background: #d1fae5; color: #065f46; }

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.btn-primary { background: var(--primary-blue); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); }

.btn-success { background: var(--success); color: var(--white); }
.btn-success:hover { background: #059669; }

.btn-danger { background: var(--danger); color: var(--white); }
.btn-danger:hover { background: #dc2626; }

.btn-warning { background: var(--warning); color: var(--white); }
.btn-warning:hover { background: #d97706; }

.btn-secondary { background: #64748b; color: var(--white); }
.btn-secondary:hover { background: #475569; }

.btn-sm { padding: 6px 12px; font-size: 0.8rem; }
.btn-icon {
  padding: 8px;
  width: 36px;
  height: 36px;
  justify-content: center;
}

.btn-export {
  background: var(--success);
  color: var(--white);
}

.btn-export:hover {
  background: #059669;
}

/* ============================================
   Empty State
   ============================================ */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state i {
  font-size: 60px;
  color: var(--text-light);
  margin-bottom: 20px;
}

.empty-state h3 {
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ============================================
   Confirm Dialog
   ============================================ */
.confirm-dialog {
  text-align: center;
}

.confirm-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 28px;
}

.confirm-icon.danger {
  background: #fee2e2;
  color: var(--danger);
}

.confirm-text {
  font-size: 0.95rem;
  color: var(--text-medium);
  margin-bottom: 8px;
}

.confirm-subtext {
  font-size: 0.85rem;
  color: var(--text-light);
}
