/* ================================
   Custom Flash Message Styles
================================= */
.custom-alert {
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
    position: fixed;
    right: 5px;
    top: 120px;
    font-size: 16px;
    z-index: 9999;
    max-width: 480px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0px 4px 8px #0000001a;
    color: #fff;
    gap: 10px;
    overflow: hidden;
}

/* Title inside alert */
.custom-alert strong {
    margin-right: 10px;
}

/* Success, Error, Warning, Info */
.custom-alert-success {
    background-color: #28a745;
}

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

.custom-alert-warning {
    background-color: #ffc107;
    color: #212529;
}

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

/* Close button */
.custom-close-btn {
    color: #fff;
    cursor: pointer;
    font-size: 20px;
    line-height: 15px;
    padding: 5px;
    font-weight: bold;
    margin-left: 15px;
    transition: color 0.3s ease;
}

.custom-close-btn:hover {
    color: #ffffffb3;
}

/* Progress bar */
.custom-alert .progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.7);
    width: 100%;
    transform: scaleX(1);
    transform-origin: left;
    transition: transform linear;
}

/* Mobile responsive */
@media screen and (max-width: 480px) {
    .custom-alert {
        max-width: 100%;
        right: 1px;
    }
}
