/* Modal Styles for Main Site */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-container {
  background: white;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

.modal-header {
  padding: 25px 30px;
  border-bottom: 1px solid #edf0f5;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header.success {
  background: #d1fae5;
  border-bottom-color: #10b981;
}

.modal-header.error {
  background: #fee2e2;
  border-bottom-color: #ef4444;
}

.modal-header.warning {
  background: #fef3c7;
  border-bottom-color: #f59e0b;
}

.modal-header.info {
  background: #dbeafe;
  border-bottom-color: #3b82f6;
}

.modal-title {
  font-size: 20px;
  font-weight: 600;
  color: #25262a;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-icon {
  font-size: 24px;
}

.modal-icon.success { color: #10b981; }
.modal-icon.error { color: #ef4444; }
.modal-icon.warning { color: #f59e0b; }
.modal-icon.info { color: #3b82f6; }

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #8c92a0;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #25262a;
}

.modal-body {
  padding: 30px;
}

.modal-message {
  font-size: 15px;
  line-height: 1.6;
  color: #555;
  margin: 0;
}

.modal-footer {
  padding: 20px 30px;
  border-top: 1px solid #edf0f5;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.modal-btn {
  padding: 10px 24px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal-btn-primary {
  background: #ee4266;
  color: white;
}

.modal-btn-primary:hover {
  background: #d63854;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(238, 66, 102, 0.3);
}

/* Responsive */
@media (max-width: 576px) {
  .modal-container {
    width: 95%;
    margin: 20px;
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding: 20px;
  }

  .modal-footer {
    flex-direction: column;
  }

  .modal-btn {
    width: 100%;
  }
}
