/**
 * Confirmation Modal Styles
 * Follows Angry Letters brand design
 */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 1rem;
  animation: fadeIn 0.2s ease;
}

.modal-overlay.hidden {
  display: none;
}

.modal-content {
  background: #ffffff;
  border-radius: 8px;
  padding: 2rem;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
  border: 2px solid #1a1a1a;
}

.modal-content.is-warning {
  border-color: #dd261e;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #1a1a1a;
  margin: 0 0 1rem 0;
  text-align: center;
}

.modal-content.is-warning .modal-title {
  color: #dd261e;
}

.modal-message {
  font-size: 1rem;
  color: #333;
  line-height: 1.5;
  margin: 0 0 1.5rem 0;
  text-align: center;
  white-space: pre-wrap;
}

.modal-inputs {
  display: none;
  margin: 0 0 1.25rem 0;
}

.modal-inputs.is-visible {
  display: block;
}

.modal-field {
  display: block;
  text-align: left;
  margin: 0 0 0.75rem 0;
}

.modal-field-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 0.35rem 0;
}

.modal-field-input {
  width: 100%;
  padding: 0.7rem 0.75rem;
  border: 2px solid #1a1a1a;
  border-radius: 6px;
  font-size: 1rem;
}

.modal-field-input:focus {
  outline: 2px solid #dd261e;
  outline-offset: 2px;
}

.modal-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.modal-btn {
  flex: 1;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: bold;
  border: 2px solid #1a1a1a;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 120px;
}

.modal-btn-cancel {
  background: transparent;
  color: #1a1a1a;
}

.modal-btn-cancel.is-hidden {
  display: none;
}

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

.modal-btn-confirm {
  background: #dd261e;
  color: #ffffff;
  border-color: #dd261e;
}

.modal-btn-confirm:hover {
  background: #c01f17;
  border-color: #c01f17;
}

.modal-btn:focus {
  outline: 2px solid #dd261e;
  outline-offset: 2px;
}

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

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

/* Mobile Responsive */
@media (max-width: 768px) {
  .modal-content {
    padding: 1.5rem;
    max-width: 90%;
  }

  .modal-title {
    font-size: 1.25rem;
  }

  .modal-message {
    font-size: 0.95rem;
  }

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

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

@media (max-width: 480px) {
  .modal-content {
    padding: 1.25rem;
  }

  .modal-title {
    font-size: 1.1rem;
  }

  .modal-message {
    font-size: 0.9rem;
  }

  .modal-btn {
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
  }
}
