/* ================================
   Custom Flash Message Styles
================================= */
.custom-alert {
    padding: 15px;
    margin: 20px 0;
    border-radius: 12px;
    position: fixed;
    right: 16px;
    top: 90px;
    font-size: 0.92rem;
    font-weight: 600;
    z-index: 9999;
    max-width: 480px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    color: #fff;
    gap: 12px;
    overflow: hidden;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

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

/* Success, Error, Warning, Info */
.custom-alert-success {
    background-color: rgba(0, 180, 120, 0.92);
    border-color: rgba(0, 200, 150, 0.4);
}

.custom-alert-error {
    background-color: rgba(220, 53, 69, 0.92);
    border-color: rgba(255, 92, 92, 0.4);
}

.custom-alert-warning {
    background-color: rgba(200, 130, 0, 0.9);
    color: #fff;
    border-color: rgba(245, 158, 11, 0.4);
}

.custom-alert-info {
    background-color: rgba(14, 165, 190, 0.9);
    border-color: rgba(56, 189, 248, 0.4);
}

/* 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;
    }
}
