/* Alert Design */
/* NEW: Alert Container */
.alert-container {
    position: fixed; /* Crucial for overlay */
    top: 20px;       /* Adjust as needed for vertical position */
    left: 50%;
    transform: translateX(-50%); /* Horizontally center */
    z-index: 9999;   /* High z-index to be on top of everything */
    display: flex;
    flex-direction: column; /* Stack multiple alerts vertically */
    align-items: center; /* Center alerts if they have different widths */
    width: auto; /* Let alerts define their width up to max-width */
    pointer-events: none; /* Allow clicks to pass through the container itself */
}

/* MODIFIED: Alert Design */
.custom-alert {
    display: flex; /* This was missing/commented out in your supplied CSS for custom-alert */
    align-items: center;
    padding: 12px 20px;
    margin-bottom: 10px; /* Space between multiple alerts */
    border-radius: 8px;
    color: white;
    /* min-width: 350px; /* Consider removing or reducing for more flexible alerts */
    max-width: 400px;  /* Adjust max-width as desired */
    width: auto; /* Let content define width up to max-width */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: translateY(-20px); /* Start slightly higher for a drop-down effect or keep translateY(20px) for slide-up */
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
    pointer-events: all; /* Make sure individual alerts are clickable if they have actions */
}

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

.custom-alert .icon {
    font-size: 1.3em;
    margin-right: 12px;
    line-height: 1;
}

.custom-alert .message {
    flex-grow: 1;
}

/* Specific Alert Styles (these are fine) */
.alert-success-custom {
    background-color: #1a6827;
    border-left: 5px solid #28a745;
}

.alert-info-custom {
    background-color: #004085;
    border-left: 5px solid #007bff;
}

.alert-warning-custom {
    background-color: #8c5412;
    border-left: 5px solid #ffc107;
}

.alert-error-custom {
    background-color: #721c24;
    border-left: 5px solid #dc3545;
}