/**
 * Custom Alert System - Styles
 * Modern, clean modal design for alerts
 */

/* Overlay */
.custom-alert-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

/* Modal */
.custom-alert-modal {
  background: linear-gradient(135deg, #1a1d29 0%, #0f1117 100%);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(6, 182, 212, 0.1);
  max-width: 480px;
  width: 90%;
  transform: scale(0.9) translateY(-20px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.custom-alert-modal.active {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Header */
.custom-alert-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.custom-alert-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
}

.custom-alert-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #e5e7eb;
  margin: 0;
  flex: 1;
}

/* Body */
.custom-alert-body {
  padding: 20px 24px;
}

.custom-alert-message {
  color: #d1d5db;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* Footer */
.custom-alert-footer {
  display: flex;
  gap: 10px;
  padding: 16px 24px 20px;
  justify-content: flex-end;
}

/* Buttons */
.custom-alert-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 7px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  outline: none;
}

.custom-alert-btn:focus {
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.3);
}

.custom-alert-btn-cancel {
  background: rgba(255, 255, 255, 0.08);
  color: #9ca3af;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.custom-alert-btn-cancel:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #d1d5db;
}

.custom-alert-btn-confirm {
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  color: #0a0e17;
  border: 1px solid rgba(6, 182, 212, 0.3);
  box-shadow: 0 2px 8px rgba(6, 182, 212, 0.3);
}

.custom-alert-btn-confirm:hover {
  background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.4);
}

.custom-alert-btn-confirm:active {
  transform: translateY(0);
}

/* Type-specific styling */
.custom-alert-info {
  border-color: rgba(59, 130, 246, 0.3);
}

.custom-alert-info .custom-alert-header {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, transparent 100%);
}

.custom-alert-success {
  border-color: rgba(34, 197, 94, 0.3);
}

.custom-alert-success .custom-alert-header {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, transparent 100%);
}

.custom-alert-success .custom-alert-btn-confirm {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  border-color: rgba(34, 197, 94, 0.3);
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.custom-alert-success .custom-alert-btn-confirm:hover {
  background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}

.custom-alert-warning {
  border-color: rgba(245, 158, 11, 0.3);
}

.custom-alert-warning .custom-alert-header {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, transparent 100%);
}

.custom-alert-warning .custom-alert-btn-confirm {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-color: rgba(245, 158, 11, 0.3);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.custom-alert-warning .custom-alert-btn-confirm:hover {
  background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.custom-alert-error {
  border-color: rgba(239, 68, 68, 0.3);
}

.custom-alert-error .custom-alert-header {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, transparent 100%);
}

.custom-alert-error .custom-alert-btn-confirm {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border-color: rgba(239, 68, 68, 0.3);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.custom-alert-error .custom-alert-btn-confirm:hover {
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.custom-alert-confirm {
  border-color: rgba(6, 182, 212, 0.3);
}

.custom-alert-confirm .custom-alert-header {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, transparent 100%);
}

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

  .custom-alert-header,
  .custom-alert-body,
  .custom-alert-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .custom-alert-footer {
    flex-direction: column-reverse;
  }

  .custom-alert-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Animation for entrance */
@keyframes slideInDown {
  from {
    transform: scale(0.9) translateY(-30px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}
