/* Modal styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 1rem;
  max-width: 42rem;
  width: 100%;
  padding: 2rem;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.modal-icon {
  width: 4rem;
  height: 4rem;
  background: linear-gradient(to bottom right, #6366f1, #4f46e5);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.3);
  color: white;
}

.modal-title-wrapper {
  flex: 1;
}

.modal-title-wrapper h2 {
  font-size: 1.5rem;
  font-weight: bold;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.modal-details {
  color: #475569;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
}

.download-btn {
  flex: 1;
  background: #4f46e5;
  color: white;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background 0.2s ease;
}

.download-btn:hover {
  background: #4338ca;
}

.close-btn {
  background: white;
  color: #64748b;
  border: 1px solid #e2e8f0;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.close-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

/* Responsive */
@media (max-width: 768px) {
  .header h1 {
    font-size: 1.875rem;
  }

  .modal-content {
    padding: 1.5rem;
  }

  .modal-actions {
    flex-direction: column;
  }

  .close-btn {
    width: 100%;
  }
}