/* © 2025 PyLocus. All rights reserved. Unauthorized use prohibited. */
/* Premium CSS for completed.html */

:root {
  --primary-gradient: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  --success-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --card-bg: #ffffff;
  --text-main: #1f2937;
  --text-muted: #6b7280;
  --bg-light: #f9fafb;
}

.completed-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.completed-header {
  text-align: center;
  margin-bottom: 60px;
  animation: fadeInUp 0.8s ease-out;
}

.header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #eff6ff;
  color: #2563eb;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
  border: 1px solid #dbeafe;
}

.completed-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 12px 0;
  letter-spacing: -0.025em;
}

.completed-header .subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* --- Complaint Grid & Card (Using Unified Styles) --- */
.complaint-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}


/* --- Search Bar --- */
.search-wrapper {
  position: relative;
  max-width: 500px;
  margin: 30px auto 0;
}

.search-wrapper i {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 1rem;
}

#completed-search {
  width: 100%;
  padding: 16px 20px 16px 52px;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  background: white;
  font-size: 1rem;
  color: var(--text-main);
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
  outline: none;
}

#completed-search:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1), 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

#completed-search::placeholder {
  color: #9ca3af;
}


/* --- Empty State --- */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  background: white;
  border-radius: 24px;
  border: 2px dashed #e5e7eb;
}

.empty-state i {
  font-size: 4rem;
  color: #d1d5db;
  margin-bottom: 20px;
}

.empty-state h3 {
  font-size: 1.5rem;
  color: var(--text-main);
  margin-bottom: 10px;
}

.empty-state p {
  color: var(--text-muted);
  margin-bottom: 30px;
}

.btn-primary {
  display: inline-block;
  background: var(--primary-gradient);
  color: white;
  padding: 12px 32px;
  border-radius: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

/* Staggering animation for cards */

/* Staggering animation for cards */
.complaint-grid .animate-in:nth-child(1) {
  animation-delay: 0.1s;
}

.complaint-grid .animate-in:nth-child(2) {
  animation-delay: 0.2s;
}

.complaint-grid .animate-in:nth-child(3) {
  animation-delay: 0.3s;
}

.complaint-grid .animate-in:nth-child(4) {
  animation-delay: 0.4s;
}

.complaint-grid .animate-in:nth-child(5) {
  animation-delay: 0.5s;
}

.complaint-grid .animate-in:nth-child(6) {
  animation-delay: 0.6s;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .completed-header h1 {
    font-size: 2rem;
  }

  .complaint-grid {
    grid-template-columns: 1fr;
  }

  .completed-container {
    margin: 20px auto;
  }
}

.hidden {
  display: none !important;
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
}

.no-results i {
  font-size: 3rem;
  color: #d1d5db;
  margin-bottom: 20px;
  display: block;
}

.no-results h3 {
  color: #1f2937;
}

.no-results p {
  color: #6b7280;
}