/* ===== FLUENT TOAST ===== */

.ftoast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column-reverse;
    gap: 12px;
    z-index: 11000;
    pointer-events: none;
    max-width: calc(100vw - 40px);
}

/* Toast individual - estilo Fluent con borde lateral por tipo */
.ftoast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 320px;
    max-width: 420px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid #E5E7EB;
    border-left-width: 4px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    pointer-events: auto;
    animation: ftoastSlideIn 0.3s cubic-bezier(0.1, 0.9, 0.2, 1);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

.ftoast-icon {
    flex-shrink: 0;
    font-size: 1.25rem;
    line-height: 1.4;
}

.ftoast-body {
    flex: 1;
    min-width: 0;
}

.ftoast-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 2px;
    line-height: 1.3;
}

.ftoast-message {
    font-size: 0.875rem;
    color: #4B5563;
    line-height: 1.4;
    word-wrap: break-word;
}

/* Boton cerrar */
.ftoast-close {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    background: transparent;
    color: #9CA3AF;
    cursor: pointer;
    border-radius: 4px;
    font-size: 1rem;
    line-height: 1;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.ftoast-close:hover {
    background-color: rgba(0, 0, 0, 0.06);
    color: #1F2937;
}

/* Variantes por tipo */
.ftoast-info {
    border-left-color: #0078D4;
}

.ftoast-info .ftoast-icon {
    color: #0078D4;
}

.ftoast-success {
    border-left-color: #107C10;
}

.ftoast-success .ftoast-icon {
    color: #107C10;
}

.ftoast-warning {
    border-left-color: #FF8C00;
}

.ftoast-warning .ftoast-icon {
    color: #FF8C00;
}

.ftoast-error {
    border-left-color: #D13438;
}

.ftoast-error .ftoast-icon {
    color: #D13438;
}

/* Responsive */
@media (max-width: 480px) {
    .ftoast-container {
        bottom: 12px;
        right: 12px;
        left: 12px;
        max-width: unset;
    }

    .ftoast {
        min-width: unset;
        max-width: unset;
        width: 100%;
    }
}
