/* FIDES-style notification toasts */
.fc-toast-stack {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    width: auto;
    max-width: calc(100vw - 40px);
    pointer-events: none;
}

.fc-toast {
    position: relative;
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 330px;
    max-width: 100%;
    padding: 14px 38px 14px 13px;
    background: #fff;
    border: 1px solid #ebeef5;
    border-radius: 8px;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    opacity: 1;
    transform: translateX(0);
    animation: fcToastInRight 0.45s cubic-bezier(0.23, 1, 0.32, 1);
}

@media (prefers-reduced-motion: reduce) {
    .fc-toast {
        animation: none;
        opacity: 1 !important;
        transform: none !important;
    }
    .fc-toast.fc-toast-hiding {
        animation: none;
        opacity: 0 !important;
    }
}

@keyframes fcToastInRight {
    from {
        opacity: 0;
        transform: translateX(calc(100% + 24px));
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fc-toast.fc-toast-hiding {
    animation: fcToastOutRight 0.3s cubic-bezier(0.755, 0.05, 0.855, 0.06) forwards;
}

@keyframes fcToastOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(calc(100% + 24px));
    }
}

.fc-toast-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin-top: 1px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.fc-toast-icon i {
    display: block;
    font-size: 12px;
    line-height: 1;
}

.fc-toast-danger .fc-toast-icon { background: #f56c6c; }
.fc-toast-success .fc-toast-icon { background: #67c23a; }
.fc-toast-info .fc-toast-icon { background: #909399; }

.fc-toast-group {
    flex: 1;
    min-width: 0;
}

.fc-toast-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    color: #303133;
}

.fc-toast-message {
    margin: 4px 0 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 21px;
    color: #606266;
    word-break: break-word;
}

.fc-toast-close {
    position: absolute;
    top: 14px;
    right: 12px;
    border: 0;
    background: transparent;
    color: #909399;
    font-size: 18px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    transition: color 0.2s ease;
}

.fc-toast-close:hover { color: #606266; }

@media (max-width: 575.98px) {
    .fc-toast-stack {
        top: 12px;
        right: 12px;
        left: 12px;
        align-items: stretch;
    }
    .fc-toast { width: 100%; }
}
