.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease-out;
}

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

.modal-header {
  padding: 24px 24px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #e5e7eb;
}

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

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

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

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

.modal-header-confirm {
  border-bottom-color: #6366f1;
}

.modal-header-prompt {
  border-bottom-color: #6366f1;
}

.modal-icon-wrapper {
  flex-shrink: 0;
}

.modal-icon {
  width: 24px;
  height: 24px;
  color: currentColor;
}

.modal-header-info .modal-icon {
  color: #3b82f6;
}

.modal-header-success .modal-icon {
  color: #10b981;
}

.modal-header-warning .modal-icon {
  color: #f59e0b;
}

.modal-header-error .modal-icon {
  color: #ef4444;
}

.modal-header-confirm .modal-icon {
  color: #6366f1;
}

.modal-header-prompt .modal-icon {
  color: #6366f1;
}

.modal-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #111827;
}

.modal-body {
  padding: 20px 24px;
  flex: 1;
  overflow-y: auto;
}

.modal-message {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: #4b5563;
  white-space: pre-wrap;
  word-wrap: break-word;
  margin-bottom: 16px;
}

.modal-input-group {
  margin-top: 16px;
}

.modal-input-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 8px;
}

.modal-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 16px;
  color: #111827;
  background-color: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.modal-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.modal-input::placeholder {
  color: #9ca3af;
}

.modal-footer {
  padding: 16px 24px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid #e5e7eb;
}

.modal-btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  min-width: 80px;
}

.modal-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal-btn:active {
  transform: translateY(0);
}

.modal-btn-cancel {
  background-color: #f3f4f6;
  color: #374151;
}

.modal-btn-cancel:hover {
  background-color: #e5e7eb;
}

.modal-btn-confirm {
  background-color: #3b82f6;
  color: white;
}

.modal-btn-confirm:hover {
  background-color: #2563eb;
}

.modal-btn-info {
  background-color: #3b82f6;
  color: white;
}

.modal-btn-info:hover {
  background-color: #2563eb;
}

.modal-btn-success {
  background-color: #10b981;
  color: white;
}

.modal-btn-success:hover {
  background-color: #059669;
}

.modal-btn-warning {
  background-color: #f59e0b;
  color: white;
}

.modal-btn-warning:hover {
  background-color: #d97706;
}

.modal-btn-error {
  background-color: #ef4444;
  color: white;
}

.modal-btn-error:hover {
  background-color: #dc2626;
}

.modal-btn-confirm {
  background-color: #6366f1;
  color: white;
}

.modal-btn-confirm:hover {
  background-color: #4f46e5;
}

.modal-btn-confirm:disabled {
  background-color: #9ca3af;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.modal-btn-confirm:disabled:hover {
  background-color: #9ca3af;
  transform: none;
  box-shadow: none;
}

/* Responsive */
@media (max-width: 640px) {
  .modal-container {
    width: 95%;
    max-height: 85vh;
  }

  .modal-header {
    padding: 20px 20px 14px;
  }

  .modal-body {
    padding: 16px 20px;
  }

  .modal-footer {
    padding: 14px 20px;
    flex-direction: column-reverse;
  }

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

