.alert-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 350px;
    width: 100%;
}

.alert {
    padding: 18px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.alert.show {
    opacity: 1;
    transform: translateX(0);
}

.alert.hide {
    opacity: 0;
    transform: translateX(100px);
}

.alert-error {
    background: white;
    border-left: 5px solid #e74c3c;
    color: #c0392b;
}

.alert-success {
    background: white;
    border-left: 5px solid #2ecc71;
    color: #27ae60;
}

.alert-warning {
    background: white;
    border-left: 5px solid #f39c12;
    color: #e67e22;
}

.alert-info {
    background: white;
    border-left: 5px solid #3498db;
    color: #2980b9;
}

.alert-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.alert-content {
    flex: 1;
    text-align: left;
}

.alert-title {
    font-weight: 700;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.alert-message {
    font-size: 0.95rem;
    opacity: 0.9;
}

.alert-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
    flex-shrink: 0;
    color: inherit;
}

.alert-close:hover {
    opacity: 1;
}

.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background: rgba(0, 0, 0, 0.1);
}

.progress-bar-inner {
    height: 100%;
    width: 100%;
    transform-origin: left;
}

.alert-error .progress-bar-inner {
    background: #e74c3c;
    animation: progress 5s linear forwards;
}

.alert-success .progress-bar-inner {
    background: #2ecc71;
    animation: progress 5s linear forwards;
}

.alert-warning .progress-bar-inner {
    background: #f39c12;
    animation: progress 7s linear forwards;
}

.alert-info .progress-bar-inner {
    background: #3498db;
    animation: progress 6s linear forwards;
}

@keyframes progress {
    0% {
        transform: scaleX(1);
    }

    100% {
        transform: scaleX(0);
    }
}


@media (max-width: 768px) {
    .alert-container {
        left: 20px;
        right: 20px;
        max-width: none;
    }
}