/* Alert Popup Styles */
.alert-popup-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    padding-top: 1rem;
    pointer-events: none;
}

.alert-popup {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    max-width: 90%;
    width: 450px;
    overflow: hidden;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

.alert-popup.show {
    transform: translateY(0);
    opacity: 1;
}

.alert-popup-header {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background-color: #f8d7da;
    color: #721c24;
    border-bottom: 1px solid #f5c6cb;
}

.alert-popup-header.warning {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.alert-popup-header.error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.alert-popup-header.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
}

.alert-popup-header.success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.alert-popup-icon {
    font-size: 1.25rem;
    margin-right: 0.5rem;
}

.alert-popup-title {
    font-weight: 600;
    flex-grow: 1;
}

.alert-popup-close {
    background: transparent;
    border: none;
    color: inherit;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
}

.alert-popup-body {
    padding: 1rem;
    color: #333;
}

.alert-popup-progress {
    height: 4px;
    background-color: rgba(0, 0, 0, 0.1);
    width: 100%;
}

.alert-popup-progress-bar {
    height: 100%;
    width: 100%;
    background-color: #6f42c1; /* Roxo da paleta do projeto */
    transition: width 5s linear;
}

.alert-popup-progress-bar.active {
    width: 0;
}

/* Cores da paleta do projeto */
.alert-popup-header.custom-error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.alert-popup-header.custom-warning {
    background-color: #fff3cd;
    color: #856404;
    border-color: #ffeeba;
}

.alert-popup-header.custom-success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.alert-popup-header.custom-info {
    background-color: #e2d8f8;
    color: #6f42c1; /* Roxo da paleta do projeto */
    border-color: #d5c8f5;
}

.alert-popup-progress-bar.custom-error {
    background-color: #dc3545;
}

.alert-popup-progress-bar.custom-warning {
    background-color: #fd7e14; /* Laranja da paleta do projeto */
}

.alert-popup-progress-bar.custom-success {
    background-color: #28a745;
}

.alert-popup-progress-bar.custom-info {
    background-color: #6f42c1; /* Roxo da paleta do projeto */
}
