/* ============================================
   ALERT CARDS (TOAST STYLE)
   ============================================ */
.ml-alert-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
    pointer-events: none;
    max-width: 90%;
    width: 400px;
}

.ml-alert-card {
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: flex;
    align-items: flex-start;
    gap: 15px;
    width: 100%;
    pointer-events: auto;
    animation: slideInRight 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-left: 5px solid #ccc;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.ml-alert-card.success { border-left-color: #2ecc71; }
.ml-alert-card.success .ml-alert-icon { color: #2ecc71; }

.ml-alert-card.error { border-left-color: #e74c3c; }
.ml-alert-card.error .ml-alert-icon { color: #e74c3c; }

.ml-alert-card.warning { border-left-color: #f1c40f; }
.ml-alert-card.warning .ml-alert-icon { color: #f1c40f; }

.ml-alert-card.info { border-left-color: var(--ml-primary); }
.ml-alert-card.info .ml-alert-icon { color: var(--ml-primary); }

.ml-alert-icon {
    font-size: 1.5rem;
    padding-top: 2px;
    flex-shrink: 0;
}

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

.ml-alert-title {
    font-weight: 700;
    margin-bottom: 4px;
    color: #2d3436;
    font-size: 1rem;
}

.ml-alert-message {
    font-size: 0.9rem;
    color: #636e72;
    line-height: 1.4;
    word-break: break-word;
}

.ml-alert-message ul {
    margin: 0;
    padding-left: 15px;
}

.ml-alert-close {
    background: none;
    border: none;
    color: #b2bec3;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
    flex-shrink: 0;
    margin-top: 2px;
}

.ml-alert-close:hover {
    color: #2d3436;
}

@media (max-width: 576px) {
    .ml-alert-container {
        right: 0;
        left: 0;
        top: auto;
        bottom: 20px;
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
        flex-direction: column-reverse; /* Stack from bottom */
    }
    
    .ml-alert-card {
        width: 100%;
        animation: slideInUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
    
    @keyframes slideInUp {
        from { transform: translateY(100%); opacity: 0; }
        to { transform: translateY(0); opacity: 1; }
    }
}
