/* Custom Alert Styles */
.custom-alert-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
}

.custom-alert {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 10px;
    border-left: 4px solid;
    animation: slideInRight 0.3s ease-out;
    overflow: hidden;
}

.custom-alert.success {
    border-left-color: #28a745;
}

.custom-alert.error {
    border-left-color: #dc3545;
}

.custom-alert.warning {
    border-left-color: #ffc107;
}

.custom-alert.info {
    border-left-color: #17a2b8;
}

.custom-alert-header {
    padding: 12px 16px 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.custom-alert-title {
    font-weight: 600;
    font-size: 14px;
    margin: 0;
}

.custom-alert.success .custom-alert-title {
    color: #28a745;
}

.custom-alert.error .custom-alert-title {
    color: #dc3545;
}

.custom-alert.warning .custom-alert-title {
    color: #856404;
}

.custom-alert.info .custom-alert-title {
    color: #17a2b8;
}

.custom-alert-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.custom-alert-close:hover {
    background-color: #f8f9fa;
    color: #495057;
}

.custom-alert-body {
    padding: 0 16px 12px 16px;
    font-size: 14px;
    color: #495057;
    line-height: 1.4;
}

.custom-alert-icon {
    margin-right: 8px;
    font-size: 16px;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.custom-alert.hiding {
    animation: slideOutRight 0.3s ease-in forwards;
}

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

.custom-confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease-out;
}

.custom-confirm-modal {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 90%;
    animation: scaleIn 0.2s ease-out;
    overflow: hidden;
}

.custom-confirm-header {
    padding: 20px 24px 16px 24px;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
}

.custom-confirm-title {
    font-weight: 600;
    font-size: 16px;
    margin: 0;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 12px;
}

.custom-confirm-icon {
    font-size: 20px;
    color: #6c757d;
}

.custom-confirm-body {
    padding: 20px 24px;
    font-size: 15px;
    color: #495057;
    line-height: 1.5;
}

.custom-confirm-footer {
    padding: 16px 24px 20px 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
}

.custom-confirm-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.custom-confirm-btn-cancel {
    background: #6c757d;
    color: white;
}

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

.custom-confirm-btn-confirm {
    background: #dc3545;
    color: white;
}

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

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
} 