/**
 * Confirm Modal Styles
 * Styled confirmation dialog component
 */

/* Modal Container */
.confirm-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.15s ease-out;
}

.confirm-modal-visible {
  opacity: 1;
}

.confirm-modal-closing {
  opacity: 0;
}

/* Backdrop */
.confirm-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
}

/* Modal Container */
.confirm-modal-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  transform: scale(0.95) translateY(-10px);
  transition: transform 0.15s ease-out;
}

.confirm-modal-visible .confirm-modal-container {
  transform: scale(1) translateY(0);
}

.confirm-modal-closing .confirm-modal-container {
  transform: scale(0.95) translateY(-10px);
}

/* Modal Content */
.confirm-modal-content {
  background: var(--content-bg, white);
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  text-align: center;
}

/* Icon */
.confirm-modal-icon {
  font-size: 3rem;
  margin: 1.5rem 0 0.5rem;
  line-height: 1;
}

/* Header */
.confirm-modal-header {
  padding: 0.5rem 1.5rem;
}

.confirm-modal-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--content-text, #1f2937);
}

/* Body */
.confirm-modal-body {
  padding: 0.5rem 1.5rem 1.5rem;
}

.confirm-modal-message {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--content-text-secondary, #6b7280);
  line-height: 1.5;
}

/* Footer */
.confirm-modal-footer {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.5rem 1.5rem;
  justify-content: center;
}

/* Buttons */
.confirm-modal-btn {
  padding: 0.625rem 1.25rem;
  border: none;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  min-width: 100px;
}

.confirm-modal-btn:hover {
  transform: translateY(-1px);
}

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

.confirm-modal-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

.confirm-modal-btn-cancel {
  background: var(--hover-bg, #f3f4f6);
  color: var(--content-text, #374151);
  border: 1px solid var(--border-color, #e5e7eb);
}

.confirm-modal-btn-cancel:hover {
  background: var(--border-color, #e5e7eb);
}

/* Confirm button types */
.confirm-modal-btn-confirm {
  color: white;
}

.confirm-modal-btn-danger {
  background: #dc2626;
  box-shadow: 0 2px 4px rgba(220, 38, 38, 0.2);
}

.confirm-modal-btn-danger:hover {
  background: #b91c1c;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.confirm-modal-btn-danger:focus {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.3);
}

.confirm-modal-btn-warning {
  background: #f59e0b;
  box-shadow: 0 2px 4px rgba(245, 158, 11, 0.2);
}

.confirm-modal-btn-warning:hover {
  background: #d97706;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.confirm-modal-btn-warning:focus {
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.3);
}

.confirm-modal-btn-info {
  background: #667eea;
  box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
}

.confirm-modal-btn-info:hover {
  background: #5a67d8;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.confirm-modal-btn-info:focus {
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

/* Type-specific icon backgrounds (optional subtle accent) */
.confirm-modal-danger .confirm-modal-icon {
  color: #dc2626;
}

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

.confirm-modal-info .confirm-modal-icon {
  color: #667eea;
}

/* Responsive */
@media (max-width: 480px) {
  .confirm-modal-container {
    max-width: calc(100% - 2rem);
  }

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

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