.session-alert {
    position: fixed;
    top: 90px;
    z-index: 9999;
    padding: 15px 25px;
    border-radius: 12px;
    font-weight: 500;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    animation: slideDown 0.5s ease forwards;
    max-width: 450px;
    min-width: 300px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: none;
    transition: all 0.3s ease;
}

.session-alert.rtl {
    right: 20px;
}

.session-alert.ltr {
    left: 20px;
}

.session-alert.success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    border-right: 4px solid #047857;
}

.session-alert.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    border-right: 4px solid #b91c1c;
}

.session-alert.warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    border-right: 4px solid #b45309;
}

.session-alert.info {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    border-right: 4px solid #1d4ed8;
}

.session-alert .alert-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.session-alert .alert-content {
    flex: 1;
}

.session-alert .alert-message {
    font-size: 15px;
    line-height: 1.5;
}

.session-alert .alert-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    font-size: 16px;
}

.session-alert .alert-close:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.session-alert .alert-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255,255,255,0.4);
    border-radius: 0 0 12px 12px;
    animation: progressBar 5s linear forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
}

@keyframes progressBar {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

.session-alert.hiding {
    animation: slideUp 0.4s ease forwards;
}

@media (max-width: 576px) {
    .session-alert {
        top: 75px;
        right: 10px !important;
        left: 10px !important;
        min-width: unset;
        max-width: calc(100% - 20px);
        padding: 12px 16px;
    }

    .session-alert .alert-message {
        font-size: 13px;
    }
}
