/* Sweet Alert Dark Theme - GalaxyBlog
   Personalização para tema escuro
   Autor: João Leno
   Data: 19/10/2025
*/

/* Container Principal */
.swal2-popup {
    background: linear-gradient(180deg, rgba(30, 30, 35, 0.98), rgba(20, 20, 25, 0.98)) !important;
    border: 1px solid rgba(102, 126, 234, 0.3) !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(102, 126, 234, 0.2) !important;
    backdrop-filter: blur(10px) !important;
    color: #eef2ff !important;
}

/* Título */
.swal2-title {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 24px !important;
}

/* Texto */
.swal2-html-container {
    color: #c8ceec !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
}

/* Ícones */
.swal2-icon {
    border-color: transparent !important;
}

/* Ícone de Sucesso */
.swal2-icon.swal2-success {
    border-color: rgba(34, 197, 94, 0.3) !important;
}

.swal2-icon.swal2-success [class^='swal2-success-line'] {
    background-color: #22c55e !important;
}

.swal2-icon.swal2-success .swal2-success-ring {
    border-color: rgba(34, 197, 94, 0.5) !important;
}

/* Ícone de Erro */
.swal2-icon.swal2-error {
    border-color: rgba(239, 68, 68, 0.3) !important;
}

.swal2-icon.swal2-error [class^='swal2-x-mark-line'] {
    background-color: #ef4444 !important;
}

/* Ícone de Warning */
.swal2-icon.swal2-warning {
    border-color: rgba(251, 191, 36, 0.3) !important;
    color: #fbbf24 !important;
}

/* Ícone de Info */
.swal2-icon.swal2-info {
    border-color: rgba(14, 165, 234, 0.3) !important;
    color: #0ea5ea !important;
}

/* Ícone de Question */
.swal2-icon.swal2-question {
    border-color: rgba(102, 126, 234, 0.3) !important;
    color: #667eea !important;
}

/* Botões */
.swal2-confirm,
.swal2-cancel,
.swal2-deny {
    border-radius: 12px !important;
    padding: 12px 24px !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

/* Botão Confirmar (customizado com a cor do projeto) */
.swal2-confirm {
    background: linear-gradient(90deg, #6f2dbd, #0ea5ea) !important;
    border: none !important;
}

.swal2-confirm:hover {
    filter: brightness(1.1) !important;
}

/* Botão Cancelar */
.swal2-cancel {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #eef2ff !important;
}

.swal2-cancel:hover {
    background: rgba(255, 255, 255, 0.12) !important;
}

/* Botão Deny */
.swal2-deny {
    background: rgba(239, 68, 68, 0.2) !important;
    border: 1px solid rgba(239, 68, 68, 0.4) !important;
    color: #fca5a5 !important;
}

/* Input do Sweet Alert */
.swal2-input,
.swal2-textarea {
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 10px !important;
    color: #eef2ff !important;
    padding: 12px 14px !important;
}

.swal2-input:focus,
.swal2-textarea:focus {
    border-color: #667eea !important;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15) !important;
}

.swal2-input::placeholder,
.swal2-textarea::placeholder {
    color: #9aa3c0 !important;
}

/* Footer */
.swal2-footer {
    color: #9ca3af !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: rgba(0, 0, 0, 0.2) !important;
}

/* Close Button */
.swal2-close {
    color: #9ca3af !important;
}

.swal2-close:hover {
    color: #ffffff !important;
}

/* Timer Progress Bar */
.swal2-timer-progress-bar {
    background: linear-gradient(90deg, #6f2dbd, #0ea5ea) !important;
}

/* Overlay/Backdrop */
.swal2-container {
    background: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(8px) !important;
}

/* Loading Spinner */
.swal2-loader {
    border-color: #667eea transparent #667eea transparent !important;
}

/* Validação de Input */
.swal2-input.swal2-inputerror {
    border-color: #ef4444 !important;
}

.swal2-validation-message {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #fca5a5 !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
}

/* Checkbox e Radio */
.swal2-checkbox input,
.swal2-radio input {
    accent-color: #667eea !important;
}

/* Select */
.swal2-select {
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #eef2ff !important;
    border-radius: 10px !important;
}

.swal2-select:focus {
    border-color: #667eea !important;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15) !important;
}

/* File Input */
.swal2-file {
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #eef2ff !important;
    border-radius: 10px !important;
}

/* Actions Container */
.swal2-actions {
    gap: 10px !important;
}

/* Responsive */
@media (max-width: 600px) {
    .swal2-popup {
        width: calc(100% - 40px) !important;
        padding: 30px 20px !important;
    }
}