/* message-styles.css */
.message-alert {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    min-width: 300px;
    max-width: 90%;
    padding: 18px 25px;
    border-radius: var(--border-radius-large);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 9999;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    font-family: var(--body-font-family);
    backdrop-filter: blur(10px);
    /* border: 1px solid rgba(255, 255, 255, 0.2); */
}

.message-alert.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.message-alert.hide {
    opacity: 0;
    transform: translateX(-50%) translateY(-100px);
}

.message-alert.success {
    background: linear-gradient(145deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white-color);
    /* border-left: 5px solid rgba(255, 255, 255, 0.3); */
}

.message-alert.error {
    background: linear-gradient(145deg, #ff6b6b 0%, #c92a2a 100%);
    color: var(--white-color);
    /* border-left: 5px solid rgba(255, 255, 255, 0.3); */
}

.message-alert.warning {
    background: linear-gradient(145deg, #ffd93d 0%, #ff9c2a 100%);
    color: var(--dark-color);
    /* border-left: 5px solid rgba(255, 255, 255, 0.3); */
}

.message-alert.info {
    background: linear-gradient(145deg, var(--primary-color) 0%, #1e88e5 100%);
    color: var(--white-color);
    /* border-left: 5px solid rgba(255, 255, 255, 0.3); */
}

.message-content {
    flex: 1;
    margin-right: 15px;
    font-size: var(--p-font-size);
    display: flex;
    align-items: center;
    gap: 12px;
}

.message-icon {
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.message-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: inherit;
    opacity: 0.8;
    transition: all 0.3s ease;
    font-size: 18px;
}

.message-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.message-progress {
    position: absolute;
    bottom: 5px;
    left: 14px;
    height: 3px;
    width: 91%;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 0 0 var(--border-radius-large) var(--border-radius-large);
    overflow: hidden;
}

.message-progress-bar {
    height: 100%;
    width: 100%;
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--border-radius-medium);
    animation: progressAnimation 15s linear forwards;
}

@keyframes progressAnimation {
    0% {
        width: 100%;
    }
    100% {
        width: 0%;
    }
}

/* ریسپانسیو برای موبایل */
@media (max-width: 768px) {
    .message-alert {
        min-width: 85%;
        padding: 15px 20px;
        top: 67px;
    }
    
    .message-content {
        font-size: 14px;
    }
    
    .message-icon {
        font-size: 20px;
    }
}