* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f8fafc;
  min-height: 100vh;
  color: #1a202c;
  margin: 0;
  padding: 0;
}

/* HERO CATALOG */
.hero-catalog {
  height: 400px;
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.6)), 
              url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 400"><rect fill="%23e2e8f0" width="1200" height="400"/><path fill="%23cbd5e0" d="M0,200 L300,150 L600,180 L900,120 L1200,160 L1200,400 L0,400 Z"/><rect fill="%23a0aec0" x="200" y="100" width="80" height="120" rx="4"/><rect fill="%23718096" x="320" y="80" width="100" height="140" rx="4"/><rect fill="%23a0aec0" x="450" y="90" width="90" height="130" rx="4"/><rect fill="%23718096" x="580" y="70" width="110" height="150" rx="4"/></svg>') center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: white;
  text-align: center;
}

.hero-catalog h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  text-shadow: 0 4px 8px rgba(0,0,0,0.5);
}

.hero-catalog p {
  font-size: 1.3rem;
  opacity: 0.95;
  font-weight: 300;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
  font-size: 1.2rem;
  opacity: 0.9;
  font-weight: 300;
}

/* CONTAINER */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* DASHBOARD SECTION */
.dashboard {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  padding: 40px 20px;
  margin-bottom: 20px;
}

.dashboard-container {
  max-width: 1200px;
  margin: 0 auto;
}

.dashboard-header {
  margin-bottom: 30px;
  color: white;
}

.dashboard-header h2 {
  font-size: 1.8rem;
  margin-bottom: 5px;
  font-weight: 700;
}

.dashboard-header p {
  color: #cbd5e0;
  font-size: 0.95rem;
}

.stats-dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.stat-card-dashboard {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card-dashboard:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.stat-card-dashboard.highlight {
  border-left: 5px solid #3b82f6;
}

.stat-card-dashboard.success {
  border-left: 5px solid #22c55e;
}

.stat-card-dashboard.warning {
  border-left: 5px solid #f59e0b;
}

.stat-card-dashboard.danger {
  border-left: 5px solid #ef4444;
}

.stat-card-dashboard.info {
  border-left: 5px solid #06b6d4;
}

.stat-dashboard-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.stat-dashboard-icon {
  font-size: 1.8rem;
  margin-right: 12px;
}

.stat-dashboard-title {
  font-size: 0.85rem;
  color: #6b7280;
  font-weight: 600;
  text-transform: uppercase;
}

.stat-dashboard-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 8px;
}

.stat-dashboard-sub {
  font-size: 0.8rem;
  color: #9ca3af;
}

.stat-dashboard-breakdown {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.breakdown-label {
  color: #6b7280;
}

.breakdown-value {
  font-weight: 600;
  color: #1a202c;
}

/* FILTERS SECTION */
.filters-section {
  margin-bottom: 40px;
  display: none;
}

.size-filters {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 12px 24px;
  border: 2px solid #e2e8f0;
  background: white;
  border-radius: 25px;
  font-weight: 600;
  color: #4a5568;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.filter-btn:hover {
  border-color: #3b82f6;
  color: #3b82f6;
}

.filter-btn.active {
  background: #22c55e;
  border-color: #22c55e;
  color: white;
}

.dropdown-filters {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 180px;
}

.filter-group label {
  font-weight: 600;
  color: #374151;
  font-size: 0.9rem;
}

.filter-group select {
  padding: 10px 15px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  background: white;
  font-size: 0.95rem;
  color: #374151;
  cursor: pointer;
  transition: border-color 0.2s;
}

.filter-group select:focus {
  outline: none;
  border-color: #3b82f6;
}

/* PROJECTS GRID */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.project-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid #f1f5f9;
  height: 220px;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.project-image {
  height: 80px;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #94a3b8;
}

.project-info {
  padding: 15px;
}

.project-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
  line-height: 1.3;
}

.project-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.project-size {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 500;
}

.project-location {
  font-size: 0.75rem;
  color: #94a3b8;
}

.project-type {
  display: inline-block;
  background: linear-gradient(135deg, #3b82f6, #1e40af);
  color: white;
  padding: 3px 10px;
  border-radius: 15px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-top: 8px;
  width: fit-content;
}

/* MODAL */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  z-index: 1000;
  padding: 20px;
  overflow-y: auto;
  animation: fadeIn 0.3s ease;
}

.modal {
  background: white;
  max-width: 800px;
  margin: 2% auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,0.25);
  animation: slideIn 0.4s ease;
  border: 1px solid #e2e8f0;
}

.modal-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
  color: white;
  padding: 30px 35px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.modal-header::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #06b6d4, #10b981);
}

.modal-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.close-btn {
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.2);
  color: white;
  cursor: pointer;
  padding: 8px;
  border-radius: 12px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-btn:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.3);
  transform: scale(1.05);
}

.modal-body {
  padding: 35px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.project-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-bottom: 35px;
  padding: 25px;
  background: white;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 15px 0;
}

.info-item label {
  font-weight: 700;
  color: #475569;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-item span {
  color: #1e293b;
  font-weight: 600;
  font-size: 1.1rem;
}

/* STATISTICS SECTION */
.statistics-section {
  background: white;
  border-radius: 16px;
  padding: 25px;
  margin-bottom: 25px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.statistics-section h3 {
  color: #1e293b;
  font-size: 1.5rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.stat-card {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.stat-card.paid {
  border-color: #22c55e;
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
}

.stat-card.pending {
  border-color: #ef4444;
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}

.stat-card.progress {
  border-color: #3b82f6;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.stat-icon {
  font-size: 2rem;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255,255,255,0.7);
}

.stat-info {
  flex: 1;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 2px;
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 4px;
}

.stat-sub {
  font-size: 0.8rem;
  color: #64748b;
}

.stat-progress {
  margin-top: 8px;
}

.progress-bar {
  height: 8px;
  background: rgba(0,0,0,0.1);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #1d4ed8);
  border-radius: 4px;
  transition: width 0.6s ease;
}

.stages-section h3 {
  color: #1e293b;
  font-size: 1.5rem;
  margin-bottom: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.stages-section h3::before {
  content: '📋';
  font-size: 1.2rem;
}

.stages-grid {
  display: grid;
  gap: 12px;
}

.stage-item {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 20px;
  border-radius: 12px;
  transition: all 0.3s ease;
  border: 2px solid #e2e8f0;
  margin-bottom: 8px;
}

.stage-item.paid {
  border-color: #22c55e;
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
}

.stage-item.pending {
  border-color: #ef4444;
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}

.stage-item:hover {
  transform: translateX(5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.stage-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stage-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stage-name {
  font-weight: 600;
  color: #334155;
  font-size: 1rem;
}

.stage-status {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  display: inline-block;
  width: fit-content;
}

.stage-status.paid {
  color: #166534;
  background: rgba(34, 197, 94, 0.2);
}

.stage-status.pending {
  color: #dc2626;
  background: rgba(239, 68, 68, 0.2);
}

.stage-amount {
  font-weight: 700;
  font-size: 1.2rem;
}

.stage-amount.paid {
  color: #166534;
}

.stage-amount.pending {
  color: #dc2626;
}

.total-section {
  margin-top: 25px;
  padding: 30px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
  border-radius: 16px;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.total-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #06b6d4, #10b981);
}

.total-section::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(59,130,246,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.total-label {
  font-size: 1.1rem;
  font-weight: 600;
  display: block;
  margin-bottom: 10px;
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

.total-amount {
  font-size: 2.5rem;
  font-weight: 800;
  text-shadow: 0 4px 8px rgba(0,0,0,0.3);
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, #ffffff, #e2e8f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ANIMATIONS */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from { 
    opacity: 0;
    transform: translateY(-50px) scale(0.95);
  }
  to { 
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-catalog h1 {
    font-size: 2.5rem;
  }
  
  .container {
    padding: 20px 15px;
  }
  
  /* MOBILE FILTERS */
  .filters-section {
    margin-bottom: 25px;
  }
  
  .size-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 15px;
  }
  
  .filter-btn {
    padding: 8px 12px;
    font-size: 0.8rem;
    text-align: center;
  }
  
  .dropdown-filters {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .filter-group {
    min-width: auto;
  }
  
  .filter-group label {
    font-size: 0.8rem;
    margin-bottom: 4px;
  }
  
  .filter-group select {
    padding: 8px 12px;
    font-size: 0.85rem;
  }
  
  /* MOBILE PROJECT LIST */
  .projects-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  
  .project-card {
    height: auto;
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    position: relative;
    overflow: hidden;
    text-align: left;
  }
  
  .project-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(135deg, #3b82f6, #1e40af);
  }
  
  .project-card:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.08);
  }
  
  .project-image {
    width: 40px;
    height: 40px;
    margin-right: 12px;
    border-radius: 10px;
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    flex-shrink: 0;
    font-size: 1.1rem;
  }
  
  .project-info {
    flex: 1;
    padding: 0;
    width: 100%;
  }
  
  .project-card h3 {
    font-size: 0.95rem;
    margin-bottom: 4px;
    color: #1e293b;
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.2;
  }
  
  .project-details {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
  }
  
  .project-size {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    color: #0369a1;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.025em;
  }
  
  .project-location {
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 500;
  }
  
  .project-type {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    color: white;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  
  /* MOBILE MODAL */
  .modal {
    margin: 10px;
    max-width: none;
    max-height: 90vh;
    overflow-y: auto;
  }
  
  .modal-header {
    padding: 20px;
  }
  
  .modal-header h2 {
    font-size: 1.5rem;
  }
  
  .modal-body {
    padding: 20px;
  }
  
  .project-info {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .stat-card {
    padding: 15px;
  }
  
  .info-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    padding: 10px 0;
  }
  
  .info-item label {
    min-width: auto;
  }
}
