#global-alert {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    padding: 15px;
    border-radius: 4px;
    display: none;
}

.alert {
    position: absolute !important;
    top: 20px;
    right: 20px;
    font-size: 12px;
    overflow: hidden;
    padding-bottom: 15px; /* Make space for progress */
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}

.alert.show {
    opacity: 1;
    transform: translateY(0);
}

.alert-progress-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 0 0 6px 6px;
    overflow: hidden;
}

.alert-progress-bar {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: currentColor;
    opacity: 0.3;
    transition: none; /* We'll animate via JS */
}

.alert-success .alert-progress-bar {
    color: #28a745;
}

.alert-warning .alert-progress-bar {
    color: #ffc107;
}

.alert-danger .alert-progress-bar,
.alert-error .alert-progress-bar {
    color: #dc3545;
}

.alert-info .alert-progress-bar {
    color: #17a2b8;
}

.simple-alert {
    font-size: 12px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 10px;
}

.simple-alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}


/**
 * SweetAlert2 styling
 */
.custom-swal-popup {
    font-family: 'Poppins', sans-serif;
}

.custom-swal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

.custom-swal-text {
    font-size: 1rem;
    color: #555;
}

.swal2-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
    align-items: center;
}

.custom-swal-confirm-button {
    background-color: #00B0BA !important;
    color: white !important;
    border: none !important;
    padding: 0.5rem 1rem !important;
    border-radius: 4px !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    transition: background-color 0.3s ease !important;
    flex: 1;
    max-width: 150px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
}

.custom-swal-cancel-button {
    color: #00B0BA !important;
    border: none #00B0BA !important;
    padding: 0.5rem 1rem !important;
    border-radius: 4px !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    transition: background-color 0.3s ease !important;
    flex: 1;
    max-width: 150px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
}
