/**
 * Flash Message Styles
 * Notificações personalizadas no estilo do painel
 */

.flash-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

.flash-message {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-left: 4px solid #667eea;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    min-width: 300px;
    max-width: 400px;
}

.flash-message.flash-show {
    opacity: 1;
    transform: translateX(0);
}

.flash-message.flash-hide {
    opacity: 0;
    transform: translateX(400px);
}

.flash-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
    flex-shrink: 0;
}

.flash-content {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    word-wrap: break-word;
}

.flash-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    flex-shrink: 0;
}

.flash-close:hover {
    color: #333;
}

/* Tipos de mensagem */

.flash-success {
    border-left-color: #10b981;
}

.flash-success .flash-icon {
    background: #d1fae5;
    color: #10b981;
}

.flash-error {
    border-left-color: #ef4444;
}

.flash-error .flash-icon {
    background: #fee2e2;
    color: #ef4444;
}

.flash-warning {
    border-left-color: #f59e0b;
}

.flash-warning .flash-icon {
    background: #fed7aa;
    color: #f59e0b;
}

.flash-info {
    border-left-color: #3b82f6;
}

.flash-info .flash-icon {
    background: #dbeafe;
    color: #3b82f6;
}

/* Responsividade */

@media (max-width: 768px) {
    .flash-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .flash-message {
        min-width: 0;
        max-width: none;
    }
}

/* Animação de pulso para atenção */

@keyframes flash-pulse {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    }

    50% {
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
    }
}

.flash-message.flash-urgent {
    animation: flash-pulse 1s ease-in-out 3;
}

/* ========================================
   MODAL DE CONFIRMAÇÃO
   ======================================== */

.confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
}

.confirm-modal.confirm-show {
    display: flex;
}

.confirm-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    animation: confirm-fade-in 0.2s ease-out;
}

.confirm-dialog {
    position: relative;
    background: white;
    border-radius: 16px;
    padding: 32px;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: confirm-slide-up 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1;
}

.confirm-icon {
    font-size: 48px;
    text-align: center;
    margin-bottom: 16px;
    animation: confirm-bounce 0.5s ease-out;
}

.confirm-title {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 16px;
    color: #333;
}

.confirm-message {
    font-size: 16px;
    line-height: 1.6;
    text-align: center;
    color: #666;
    margin-bottom: 32px;
}

.confirm-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.confirm-btn {
    padding: 12px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 120px;
}

.confirm-btn-cancel {
    background: #e5e7eb;
    color: #374151;
}

.confirm-btn-cancel:hover {
    background: #d1d5db;
    transform: translateY(-1px);
}

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

.confirm-btn-confirm {
    background: #667eea;
    color: white;
}

.confirm-btn-confirm:hover {
    background: #5568d3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

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

/* Tipos de confirmação */

.confirm-dialog.confirm-warning .confirm-btn-confirm {
    background: #f59e0b;
}

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

.confirm-dialog.confirm-danger .confirm-btn-confirm {
    background: #ef4444;
}

.confirm-dialog.confirm-danger .confirm-btn-confirm:hover {
    background: #dc2626;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.confirm-dialog.confirm-success .confirm-btn-confirm {
    background: #10b981;
}

.confirm-dialog.confirm-success .confirm-btn-confirm:hover {
    background: #059669;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.confirm-dialog.confirm-info .confirm-btn-confirm {
    background: #3b82f6;
}

.confirm-dialog.confirm-info .confirm-btn-confirm:hover {
    background: #2563eb;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* Animações do modal */

@keyframes confirm-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes confirm-slide-up {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes confirm-bounce {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* Responsividade do modal */

@media (max-width: 768px) {
    .confirm-dialog {
        padding: 24px;
        max-width: 90%;
    }

    .confirm-icon {
        font-size: 36px;
    }

    .confirm-title {
        font-size: 20px;
    }

    .confirm-message {
        font-size: 14px;
    }

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

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

/* Suporte a teclado */

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

.confirm-btn-cancel:focus {
    box-shadow: 0 0 0 3px rgba(156, 163, 175, 0.3);
}