/* ============================================
   ALERTS COMPONENT
   ============================================ */

.alert-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.alert {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    animation: slideInRight 0.4s ease;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    min-width: 280px;
    backdrop-filter: blur(10px);
}

.alert-success {
    background: linear-gradient(135deg, #48bb78, #38a169);
    border-left: 4px solid #2f855a;
}

.alert-error {
    background: linear-gradient(135deg, #fc8181, #e53e3e);
    border-left: 4px solid #c53030;
}

.alert-warning {
    background: linear-gradient(135deg, #ed8936, #dd6b20);
    border-left: 4px solid #c05621;
}

.alert-info {
    background: linear-gradient(135deg, #63b3ed, #4299e1);
    border-left: 4px solid #2b6cb0;
}

.alert-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.alert-content {
    flex: 1;
    word-break: break-word;
}

.alert-title {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 2px;
}

.alert-message {
    font-weight: 400;
    font-size: 13px;
    opacity: 0.9;
}

.alert-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition);
    padding: 0 5px;
    flex-shrink: 0;
}

.alert-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

.alert-progress {
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    margin-top: 10px;
    overflow: hidden;
}

.alert-progress-bar {
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    animation: progressShrink 5s linear forwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes progressShrink {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

/* Alert exit animation */
.alert-exit {
    animation: slideOutRight 0.3s ease forwards;
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Responsive */
@media (max-width: 480px) {
    .alert-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .alert {
        min-width: auto;
        padding: 14px 16px;
        font-size: 13px;
    }
}